struct上边配置了交给spring管理bean,下边的class=改成bean的名字而不是用包名加类名,另外加上namespace=“/”试试
要把你的代码都发出来,有个异常截图是你的action 无法实例化
[quote=引用 7 楼 qq_16601517 的回复:] 还是一样的错 helloAction不是要和spring里面的一样么?
还是一样的错 helloAction不是要和spring里面的一样么?
struts.xml里的
[quote=引用 2 楼 qq_16601517 的回复:] [quote=引用 1 楼 公交哥的回复:]路径用helloAction而不是hello
[quote=引用 1 楼 公交哥的回复:]路径用helloAction而不是hello
路径用helloAction而不是hello
81,122
社区成员
341,744
社区内容
加载中
试试用AI创作助手写篇文章吧