我在struts2的struts.xml中将class制定为spring配置文件中的id名,但是启动tomcat说找不到,不知道有是什么地方该注意的,谢谢

我用的是struts2.1.8

Caused by: Action class [orgList] not found - action - file:/D:/apache-tomcat-6.0.18/webapps/OA2/WEB-INF/classes/struts.xml:12:54

这是applicationContext中的

这是struts.xml中的


/org/index.jsp
/index.jsp

这个方式是不行的,得需要struts-spring插件支持
struts2-spring-plugin-j4-2.0.11.2.jar
放进lib目录,不用配置,就可以了

看配置实例
http://www.iteye.com/topic/56019

不好意思,上面是我降过阶的包,原包应该是
struts2-spring-plugin-2.0.11.2.jar
由于这个文件是1.6jdk的包,我的项目是1.4,因此对这个包降级了,所以换了个名字。