struts action的配置文件加载失败:
原因:忘记了继承包struts-default
Unable to load configuration. - result - file:/D:/Java/apache-tomcat-5.5.20/webapps/mysts/WEB-INF/classes/test.xml:10:26
Caused by: No result type specified for result named 'error', perhaps the parent package does not specify the result type? - result - file:/D:/Java/apache-tomcat-5.5.20/webapps/mysts/WEB-INF/classes/test.xml:10:26
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:609)
原因:忘记了继承包struts-default
解决StrutsAction配置文件加载及结果类型设置问题
本文详细解析了在使用Struts框架过程中遇到的配置文件加载失败和结果类型未指定的问题,提供了具体的解决方案,帮助开发者正确配置并避免常见错误。
2511

被折叠的 条评论
为什么被折叠?



