com.opensymphony.xwork2.config.ConfigurationException

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" />

你可能感兴趣的:(configuration)