org.apache.jasper.JasperException: The Struts dispatcher cannot be found的解决方法
来源:互联网 发布:dat文件导入数据库 编辑:程序博客网 时间:2024/05/17 04:19
这个是配置问题
我在web.xml中的配置为
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
然而我在jsp文件中加入了struts2的标签,而我的配置中struts2不会代理jsp文件,就会出现问题。
解决问题的办法很简单 就是将jsp加入到struts2的配置中:
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
- org.apache.jasper.JasperException: The Struts dispatcher cannot be found的解决方法
- org.apache.jasper.JasperException: The Struts dispatcher cannot be found的解决方法
- org.apache.jasper.jasperexception the struts dispatcher cannot be found
- org.apache.jasper.JasperException: The Struts dispatcher cannot
- The Struts dispatcher cannot be found异常的解决方法
- struts2.0 下The Struts dispatcher cannot be found 解决方法
- org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolve
- The Struts dispatcher cannot be found
- The Struts dispatcher cannot be found
- The Struts dispatcher cannot be found....
- The Struts dispatcher cannot be found.
- The Struts dispatcher cannot be found
- The Struts dispatcher cannot be found.
- The Struts dispatcher cannot be found
- The Struts dispatcher cannot be found.
- The Struts dispatcher cannot be found.
- The Struts dispatcher cannot be found.
- The Struts dispatcher cannot be found
- 从源码角度看一个activity的绘制过程
- Codeforces Round #352 (Div. 2) C
- Android开发控制台,logcat中的内容不能复制?
- 加入一个组播组
- win32汇编 屏幕截图保存BMP 学习笔记<第三篇>之odbg调试
- org.apache.jasper.JasperException: The Struts dispatcher cannot be found的解决方法
- 超级高铁时速可达1200公里 2020年或可实现
- 移动应用技术开发大作业——Android平台个人简历
- python2.7 模块全局__metaclass__
- mysql 设置密码
- 默认构造函数
- 注解之@RequestMapping和@RequestBody
- PAT-B 1045. 快速排序
- 任意类型排序