首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

错误解决

2012-10-06 
异常解决Struts Problem ReportStruts has detected an unhandled exception: Messages: No result define

异常解决
Struts Problem Report
Struts has detected an unhandled exception:

Messages: No result defined for action com.bcp.web.hr.employee.ApplyForLeaveAction and result input

----------------------------------

Stacktraces
No result defined for action com.bcp.web.hr.employee.ApplyForLeaveAction and result input
    com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:364)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266)
    com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)

  解决:
首先,检查配置文件,然后用一个页面,直接提交一个action看能否提交,如果不能,那么,直接告诉你,你配置文件错了,也就是说你action的名字错了,自己检查吧。
其次,  提交的内容,model接受转化不了指定类型,name=hours value=“创建” 该是指定的double类型,换成value=“1”即可

热点排行