Servlet.service() for servlet jsp threw exception The Struts dispatcher cannot be found.

来源:互联网 发布:想开淘宝没有货 编辑:程序博客网 时间:2024/06/04 19:25
重点现象:加了标签后,出现此问题

其实最后只在原配置基础上加上.jsp过滤即可


<welcome-file-list>     <welcome-file>index.jsp</welcome-file>   </welcome-file-list>   <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>   <listener>  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>   </listener>  


0 0
原创粉丝点击