There is no Action mapped for namespace / and action name AjaxServlet. - [unknown location]

来源:互联网 发布:手机过滤广告软件 编辑:程序博客网 时间:2024/05/22 00:44
 如果觉得自己的ajax没错的话,很有可能是struts的配置给过滤掉了

 <filter>
   <filter-name>struts2</filter-name>
   <filter-class>
   org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
   </filter-class>
  </filter>
  <filter-mapping>
   <filter-name>struts2</filter-name>
   <url-pattern>/*</url-pattern>
  </filter-mapping>

 

 例如我们可以吧/*更改为  *.action

原创粉丝点击