Could not find action or result
There is no Action mapped for action name mpxServiceSoftware. - [unknown location],
当访问项目的servlet时,报了这个异常.
几经周折,原来提web.xml中struts的配置问题:
1, <filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.StrutsPrepareAndExecuteFilter </filter-class>
</filter>
换为:
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter </filter-class>
</filter>
2, 在struts.properties中加上struts.action.excludePattern=.*/test.*就行了. 其中test 根据自己的实际情况定.
就木有问题了.