上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页
摘要: http://1358440610-qq-com.iteye.com/blog/1826816 阅读全文
posted @ 2016-12-08 13:51 且听风吟-wuchao 阅读(137) 评论(0) 推荐(0) 编辑
摘要: struts2和spring的整合,关键点在于struts2中的action要纳入spring容器的管理中成为一个bean。 可以在struts2中配置: <struts> <constant name="struts.objectFactory" value="spring" /> </strut 阅读全文
posted @ 2016-11-27 20:17 且听风吟-wuchao 阅读(548) 评论(0) 推荐(0) 编辑
摘要: Hibernate的工作原理图如下所示: 阅读全文
posted @ 2016-11-17 19:41 且听风吟-wuchao 阅读(145) 评论(0) 推荐(0) 编辑
摘要: <s:action name=”actionName” namespace=”/” executeResult=”true”> <s:action>可以在jsp中直接调用action,记得配置namespace。 当executeResult=“true”时,action执行完后,result对应的 阅读全文
posted @ 2016-11-16 19:54 且听风吟-wuchao 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 在OGNL的使用中,需要访问一系列的对象,这些对象放在OGNL的context中,context是一个Map结构,实际上它和ActionContext是相应的。 当用户发送请求时,struts会创建ActionContext、ValueStack、action对象,action对象放在ValueSt 阅读全文
posted @ 2016-11-16 19:52 且听风吟-wuchao 阅读(326) 评论(0) 推荐(0) 编辑
摘要: jsp:useBean动作只有在不存在同样id和scope的Bean时才创建新的对象实例 ,并将该实例放入对应的作用域。默认作用域是page,以下举例: 在useBean.jsp文件下配置: <jsp:useBeanid="userBean"class="com.wuchao.beans.User" 阅读全文
posted @ 2016-11-16 19:48 且听风吟-wuchao 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 之前一直以为请求达到Web应用时,经过过滤器1,过滤器2……,处理后产生响应再经过过滤器n……过滤器2,过滤器1。这样的阐述似乎没有问题,但我的理解却有问题。比如过滤器1的doFilter方法执行了一个输出语句:System.out.println("hello"),我以为会在请求到达时输出一次,响 阅读全文
posted @ 2016-11-14 21:29 且听风吟-wuchao 阅读(1044) 评论(0) 推荐(0) 编辑
摘要: 以下为Struts2的体系结构图: Struts2框架处理用户请求,大体分为以下几个过程: (1)用户发出一个HttpServletRequest请求 (2)请求经过一系列过滤器,最后达到FilterDispatcher过滤器,该过滤器是Struts2控制器的核心,FilterDispatcher通 阅读全文
posted @ 2016-11-14 19:33 且听风吟-wuchao 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 驱动程序:mysql-connector-java-5.1.7-bin.jar。 程序示例如下: 阅读全文
posted @ 2016-11-14 13:54 且听风吟-wuchao 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 配置web.xml <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-cla 阅读全文
posted @ 2016-11-07 20:20 且听风吟-wuchao 阅读(921) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页