首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

关于s2.2 sh整合的错误 Struts has detected an unhandled exception: index()

2012-12-23 
关于s2.2 sh整合的异常 Struts has detected an unhandled exception:index()http://xiaofancn.iteye.com/

关于s2.2 sh整合的异常 Struts has detected an unhandled exception: index()

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包。如上问题解决。

热点排行