为了账号安全,请及时绑定邮箱和手机立即绑定

input错误

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. 

出现这个那还是得配置过滤器?

正在回答

2 回答

(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>

0 回复 有任何疑惑可以回复我~

这个错误怎么解决的?

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Struts2入门
  • 参与学习       95042    人
  • 解答问题       481    个

本教程带你踏上Struts2学习之旅,对Struts2进行更深入讲解

进入课程
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号