在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>
展开
 我来答
154vpbuwy
2011-07-01 · TA获得超过3772个赞
知道大有可为答主
回答量:4585
采纳率:0%
帮助的人:942万
展开全部
明显写的吗!
action配置的有问题,去struts-config.xml下检查一下。
容器没有找到相应的action!
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
208vokcwu
2011-07-01 · TA获得超过2168个赞
知道大有可为答主
回答量:4655
采纳率:0%
帮助的人:835万
展开全部
明显写的吗!
action配置的有问题,去struts-config.xml下检查一下。
容器没有找到相应的action!
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
贺诗琦钰
2011-07-01 · TA获得超过3294个赞
知道大有可为答主
回答量:941
采纳率:0%
帮助的人:1575万
展开全部
你JSP页面里面有加<%@ taglib uri="/struts-tags" prefix="s"%>这个吗,好像报的是标签错误
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式