ssh2整合问题
2012-08-21 22:50
253 查看
1、ssh2整合完毕后访问页面报错:
The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this
tag. - [unknown location]
原因: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>/*</url-pattern>
</filter-mapping>
关键点:<url-pattern>中一定要是/*
The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this
tag. - [unknown location]
原因: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>/*</url-pattern>
</filter-mapping>
关键点:<url-pattern>中一定要是/*
相关文章推荐
- SSH2整合Ralasafe配置过程问题汇总
- ssh2整合OA问题集
- ssh2整合时乱码问题
- ssh2整合中的一些问题
- ssh2整合OA问题集
- SSH2框架整合的常见问题总结!
- SSH2整合出现404的问题解决
- 在ssh2整合框架中,客户端使用jquery validate ajax验证用户名是否重复时,出现问题。 请指教!
- Spring与Hibernate整合小细节与测试问题
- struts1和spring进行整合的时候struts-config.xml文件的配置顺序问题
- JavaEE_Mybatis_SpringMVC_整合开发_数据绑定_int/Integer等 基础类型自动拆装包中的小问题
- 关于spring整合后无法解析properties占位符的问题
- spring整合mybatis sqlSession释放问题
- ssh2环境下的hibernate搜索中文乱码问题解决
- struts+spring+hibernate整合问题解决方法 陆续更新中....
- 关于JOffice的业务表单与流程的整合问题
- ssh2 整合 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in Servl
- SSH框架整合发现的问题,必须放置在Spring中配置
- ssh2整合(二)
- nodejs+express+handlebars整合demo及转义\问题分析