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”即可