严重: Servlet.service() for servlet jsp threw exception The Struts dispatcher cannot be found.
2015-02-02 16:34
681 查看
login.jsp中<%@taglib prefix="s" uri="/struts-tags"%>
访问出错:
严重: Servlet.service() for servlet jsp threw exception The Struts dispatcher cannot be found.
解决办法:
在web.xml中,
访问出错:
严重: Servlet.service() for servlet jsp threw exception The Struts dispatcher cannot be found.
解决办法:
在web.xml中,
<?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <display-name></display-name> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext*</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <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> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>*.jsp</url-pattern> </filter-mapping></web-app>添加:
<filter-name>struts2</filter-name> <url-pattern>*.jsp</url-pattern> </filter-mapping>
相关文章推荐
- 严重: Servlet.service() for servlet jsp threw exception The Struts dispatcher cannot be found.
- Servlet.service() for servlet jsp threw exception The Struts dispatcher cannot be found.
- JSP 不能用 不支持 STRUTS标签 报错 The Struts dispatcher cannot be found.
- 严重: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /WEB-INF/js
- JSP The Struts dispatcher cannot be found异常的解决方法
- JSP 不能用 不支持 STRUTS标签 报错 The Struts dispatcher cannot be found.
- 严重: Servlet.service() for servlet jsp threw exception
- 严重: Servlet.service() for servlet jsp threw exception java.lang.NoSuchMethodError: com.opensymphony.
- 严重: Servlet.service() for servlet jsp threw exception--javax.servlet.ServletException:
- 严重: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: According t
- 严重: Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called
- 严重: Servlet.service() for servlet jsp threw exception
- 严重: Servlet.service() for servlet jsp threw exception
- 严重: Servlet.service() for servlet jsp threw exception
- org.apache.jasper.JasperException: The Struts dispatcher cannot be found的解决方法
- SEVERE: Servlet.service() for servlet jsp threw exception javax.el.PropertyNotFoundException: Proper
- 严重: Servlet.service() for servlet action threw exception org.apache.struts.chain.commands.InvalidPathException: No action config
- 严重: Servlet.service() for servlet jsp threw exception
- 严重: Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called
- Struts 2 严重: Servlet.service() for servlet default threw exception java.lang.IllegalStateException