http://xiaofancn.iteye.com/blog/986631
这是我用annotation配置,为了最大的灵活性,struts的action使用xml配置。
因为action中太多的注解使得代码混乱。当我访问每一个action时,总是爆出如下错误;
Struts Problem Report
Struts has detected an unhandled exception:
Messages: org.snailteam.action.ajax.ValidateCodeAction.index()
File: java/lang/Class.java
Line number: 1,605
我在网上使用了关键字搜索,查到一篇文章。struts2.2默认加载的配置比较多,
所以把s2.2sh整合,改成struts2.0sh整合.于是下载了struts2.0的示例程序包
,在项目中尽量加入更少的jar包。如上问题解决。
本文解决了使用Struts2框架时出现的未处理异常问题,通过调整Struts2版本并减少项目依赖的jar包数量来解决。作者从Struts2.2版本降级到2.0版本,并移除了不必要的jar包。

3241

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



