struts2.3.15.1 中jsp:include与jsp:forward的用法
2013-08-29 10:58
309 查看
首先配置好struts2的过滤器:web.xml中的配置
然后在<url-pattern>/*</url-pattern>后加上
就可以了...
<filter> <filter-name>struts-prepare</filter-name> <filter-class> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter </filter-class> </filter> <filter-mapping> <filter-name>struts-prepare</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
然后在<url-pattern>/*</url-pattern>后加上
<dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher>
就可以了...
相关文章推荐
- JSP培训(4)——实例:登录功能、jsp:forward标签、jsp:include标签、include指令、EL、c:i
- [JSP]标准标签、<jsp:include、forward、param、useBean、setProperty、getProperty>
- JSP入门命令--page、include、forward指令小结
- J2EE技术规范(五)——JSP(出错页,Forward,Include,标签)
- <%@include%>、<jsp:include>、<jsp:forward>、sendredirect 的区别
- java JSP中的include的两种用法
- jsp/servlet 中sendRedirect,include,forward区别
- JSP两个动作(include,forward)
- JSP中的include的两种用法
- jsp中include两种用法的区别
- JAVA基础之sql模糊匹配、外键以及jsp中include的用法
- JSP中动态INCLUDE与静态INCLUDE,forward与sendredirect的区别
- JSP中的include的两种用法
- include与jsp:include与s:action与s:include与iframe用法汇总
- JSP中的include的两种用法
- web开发----jsp中通用模版的引用 include的用法
- Jsp中include与forward的区别
- errorPage、jsp:include、jsp:forward、get\post乱码解决
- JSP中的include的两种用法
- jsp中 RequestDispatcher接口的两种跳转:forward()和include()