如果url-pattern为*.do有后缀,则再加一个filter-mapping,url-pattern为*.jsp就可以解决
<filter-mapping>
<filter-name>action2</filter-name>
<url-pattern>*.do</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>action2</filter-name>
<url-pattern>*.jsp</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
或者后缀改为/*,如
<filter-mapping>
<filter-name>action2</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
分享到:
相关推荐
struts标签 • Bean Tags:该标签库包含的标签可以用来创建bean、访问bean和访问bean的属性。同时提供了依据cookies、headers和parameters的值创建相关bean的能力。 HTML Tags:该标签库包含的标签可以用来创建...
NULL 博文链接:https://coneyliu.iteye.com/blog/1100132
struts2标签使用例子 struts2标签使用例子 struts2标签使用例子struts2标签使用例子
struts标签库struts标签库struts标签库struts标签库struts标签库struts标签库struts标签库struts标签库
struts标签库里面包括struts所有的标签使用源码
Struts2标签库Struts2标签库Struts2标签库Struts2标签库Struts2标签库Struts2标签库
struts1标签struts1标签struts1标签struts1标签struts1标签struts1标签struts1标签struts1标签struts1标签struts1标签struts1标签struts1标签struts1标签struts1标签struts1标签struts1标签struts1标签
struts2标签库struts2标签库struts2标签库struts2标签库
主要介绍了struts2的标签的详细使用例子说明
Struts标签 Struts标签Struts标签Struts标签Struts标签
1.struts标签的使用 2.struts常用html标签库 3.在STRUTS中如何使用标签
struts标签库,里面详细介绍了如何使用各种struts标签.
Struts提供了五个标签库,即:HTML、Bean、Logic、Template和Nested。 HTML 标签 : 用来创建能够和Struts 框架和其他相应的HTML 标签交互的HTML 输入表单 ...Nested标签: 增强对其他的Struts 标签的嵌套使用的能力
Struts 标签 页面跳转 数据库操作 Struts 标签 页面跳转 数据库操作 Struts 标签 页面跳转 数据库操作
解决Struts2中下载文件时,点击弹出框上面的取消按钮后,后台报错问题
Struts标签 大全
Struts标签库Struts标签库Struts标签库案例
struts标签中文手册,struts标签中文手册,struts标签中文手册
struts标签使用中文说明文档 struts标签使用中文说明文档struts标签使用中文说明文档
struts标签问题struts标签问题struts标签问题struts标签问题