首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Could not find action or result There is no Action 地图ped for action name mpxSer

2012-08-26 
Could not find action or result There is no Action mapped for action name mpxSerCould not find acti

Could not find action or result There is no Action mapped for action name mpxSer

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 根据自己的实际情况定.

?

?

就木有问题了.

热点排行