com.opensymphony.xwork2.config.ConfigurationExcept

com.opensymphony.xwork2.config.ConfigurationException: No result defined for action knowledge.onlinelist.action.OnlineList and result initNew


解放方法:

网上很多帖子,说是缺少struts2和spring整合包struts2-spring-plugin-XXX.jar,但是我工程里面已经有 了这个包,后来看到说在struts.properties里把struts.objectFactory=spring改成 struts.objectFactory=com.opensymphony.xwork2.ObjectFactory,果真就可以了,如下,在 struts.xml中把
<constant name="struts.objectFactory" value="spring" /> 改为:
<constant name="struts.objectFactory" value="com.opensymphony.xwork2.ObjectFactory" />


你可能感兴趣的:(com.opensymphony.xwork2.config.ConfigurationExcept)