Struts报错:The Struts dispatcher cannot be found.

本文介绍了一个关于Struts框架的问题,在使用<s:actionmessage>标签时出现了500错误。错误提示指出未找到Struts分发器,这通常是因为没有正确配置Struts过滤器。文中给出了web.xml和struts.xml的部分配置,以及出现问题的login.jsp页面代码。

报错
错误信息为:
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]

web.xml配置如下:
在这里插入图片描述

struts.xml配置如下:
在这里插入图片描述
login.jsp页面代码如下:
在这里插入图片描述
运行结果:
在这里插入图片描述
存在问题 添加<s:actionmessage>标签 服务器出现出现500

求帮助 急0.0

评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值