在struts2.0中报错如下:
页面报错:
HTTP Status 404 - No result defined for action com.svse.action.UserAction and result input
控制台报错:
严重: Could not find action or result
No result defined for action com.svse.action.UserAction and result input - action - file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ch04/WEB-INF/classes/struts.xml:5:56
出现这种情况时,要检查 VO 或BO中数据类型,比如应该是String ,写成了Integer。若数据类型不匹配则也会出现此错误。