我正在尝试将struts版本从2.3.35升级到2.5.17,但遇到了如下问题: at com.opensymphony.xwork2config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:163)
我一直在使用本指南迁移到struts我已经升级了所有struts相关的jar到2.5.17版本,包括struts 2-tiles-plugin
在Struts中,假设我们在struts-config.xml中定义了一个名称为TaskForm的表单。在其中一个javascript函数中,我可以看到以下语句:
document.TaskForm(some form name in struts-config.xml).action = action
但它会在浏览器中抛出以下错误,Struts has detected an unhandled exception:
<constant name="struts.objectFactory" value="org.apache.struts2.spring.StrutsSpringObjectFactory" />