Could not find action or result struts2

No result defined for action com.inspur.eoms.duty.alarmThing.action.DutyAlarmThingAction and result input - action - file:/D:/workspace/java/eoms3_job/WebContent/WEB-INF/classes/struts-duty.xml:145:72
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:350)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)

网上说

写道
<result name="success">/emailManagement/showEmaiById.jsp</result>
你的Action中返回SUCCESS,但是实际运行中Action并没有返回SUCCESS而是出现了错误,返回INPUT,所以你要定义与INPUT对应的Result,你可以添加一个

 实际上是我的字段在前台没加验证,应该是数字却输入字符,后台无法转化,所以导致过滤器出错,报了上面的错误.

你可能感兴趣的:(java,Web,jsp,xml,struts)