struts2遇见的错误
2012-10-22 10:52
162 查看
1.The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servletfilter, which initializes the Struts dispatcher needed for this
tag.
出现此问题,在原配置下加上jsp过滤器。【还不知道为啥。】
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
2.java.lang.RuntimeException: Invalid action class configuration that references an unknown class named [AccountAction];
Method "setRoleId" failed for object com.gather.bean.Rolelist@357bf9 [java.lang.NoSuchMethodException:
com.gather.bean.Rolelist.setRoleId([Ljava.lang.String;)]
可能性1:页面上的roleId字段前面多了一个空格, 删掉。
可能性2:struts配置文件里,Result返回值不对。改正。
tag.
出现此问题,在原配置下加上jsp过滤器。【还不知道为啥。】
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
2.java.lang.RuntimeException: Invalid action class configuration that references an unknown class named [AccountAction];
Method "setRoleId" failed for object com.gather.bean.Rolelist@357bf9 [java.lang.NoSuchMethodException:
com.gather.bean.Rolelist.setRoleId([Ljava.lang.String;)]
可能性1:页面上的roleId字段前面多了一个空格, 删掉。
可能性2:struts配置文件里,Result返回值不对。改正。
相关文章推荐
- Struts2中的Unable to load configuration错误的分析与解决方法
- 使用struts2 做客户端校验时抛出freemarker模版错误异常的处理
- Struts2中内存溢出(java.lang.OutOfMemoryError)异常错误介绍和解决方法
- 利用monkey测试android,入门级用户可能遇见的错误及解决办法
- struts2利用等标签详细地控制错误消息输出格式
- struts2错误消息定制和自定义类型转换
- Unable to find ‘struts.multipart.saveDir’ Struts2上传文件错误的解决方法
- Struts2错误整理
- struts2声明式异常处理,友好的错误界面,自定义异常拦截器,
- Struts2-package错误
- struts2 错误总结 自己会不断更新中。。。。。
- 常遇见的警告、错误以及相关解决方法
- struts2 文档的一处错误?
- 4.1.8: Struts2的类型转换---类型转换中的错误处理
- struts2在继承ActionSupport时,在package前面出现错误
- struts2错误 : java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
- Struts2标签实例及常见错误
- Struts2出现这样的错误
- struts2_jsp画面创建错误整理
- 敲学生管理系统遇见错误之实时错误‘3021’