![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
在ssh2框架中配置404、500...错误页面时异常。。。
贴一部分主要的异常:Causedby:TheStrutsdispatchercannotbefound.ThisisusuallycausedbyusingStrutst...
贴一部分主要的异常:
Caused by: 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]
13:
14: <body>
15: <div class="mainwidth">
16: <s:include value="/head.jsp"></s:include>
17:
18: <div class="mainwidth">
19: <div class="d404">页面没有找到 | 404</div>
web.xml:
这个错误码,是配置在strus2的拦截器后面的。
<!-- 404 页面不存在错误 -->
<error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>
<!-- 500 服务器内部错误 -->
<error-page>
<error-code>500</error-code>
<location>/500.jsp</location>
</error-page> 展开
Caused by: 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]
13:
14: <body>
15: <div class="mainwidth">
16: <s:include value="/head.jsp"></s:include>
17:
18: <div class="mainwidth">
19: <div class="d404">页面没有找到 | 404</div>
web.xml:
这个错误码,是配置在strus2的拦截器后面的。
<!-- 404 页面不存在错误 -->
<error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>
<!-- 500 服务器内部错误 -->
<error-page>
<error-code>500</error-code>
<location>/500.jsp</location>
</error-page> 展开
展开全部
明显写的吗!
action配置的有问题,去struts-config.xml下检查一下。
容器没有找到相应的action!
action配置的有问题,去struts-config.xml下检查一下。
容器没有找到相应的action!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
明显写的吗!
action配置的有问题,去struts-config.xml下检查一下。
容器没有找到相应的action!
action配置的有问题,去struts-config.xml下检查一下。
容器没有找到相应的action!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你JSP页面里面有加<%@ taglib uri="/struts-tags" prefix="s"%>这个吗,好像报的是标签错误
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询