The Struts dispatcher cannot be found. This is usually caused by using Struts ta
2017-02-04 16:09
621 查看
HTTP Status 500 -
type Exception reportmessage
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: 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] org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
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] org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60) org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:52) org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:49) org.apache.jsp.index_jsp._jspx_meth_s_005ftextfield_005f0(index_jsp.java:122) org.apache.jsp.index_jsp._jspService(index_jsp.java:93) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
(1)JSP页面中没有加入类似下面内容:
<%@ taglib prefix="s" uri="/struts-tags"%>
(2)拦截器不是/*
<filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class> </filter>
<filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
相关文章推荐
- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the...
- The Struts dispatcher cannot be found. This is usually caused by using Struts
- The Struts dispatcher cannot be found. This is usually caused by using Strut
- The Struts dispatcher cannot be found. This is usually caused by using Strut
- The Struts dispatcher cannot be found. This is usually caused by using Struts
- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts
- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. 异常的处理方法
- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. 异常
- 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
- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. 异常
- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the assoc
- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the assoc
- The Struts dispatcher cannot be found. This is usually caused by using Struts t
- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the assoc
- .The Struts dispatcher cannot be found. This is usually caused by using Struts
- HTTP Status 500 - The Struts dispatcher cannot be found. This is usually caused by using Struts tags
- 1.The Struts dispatcher cannot be found. This is usually caused by using Struts
- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the assoc
- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the assoc
- struts2 配置出现错误信息This is usually caused by using Struts tags without the associated filter