日期:2014-05-17  浏览次数:20769 次

struts2 ,web.xml中配置为/*.action,运行报错Invalid <url-pattern> /*.action in filter mapp
如题,我非得改为
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
  </filter-mapping>  
才行,为什么呀?

------解决方案--------------------
写*.action
------解决方案--------------------
filter知识没理解,容器只认 全名匹配,路径匹配,扩展名匹配.
/*.action 又是路径匹配,有时扩展名匹配. 容器没办法区分

建立学习了servlet,在学框架.