struts2.3.8的类型转换
HTTP Status 404 - No result defined for action com.shengsiyuan.struts2.UserAction and result input
type Status report:message No result defined for action com.shengsiyuan.struts2.UserAction and result input
description: The requested resource (No result defined for action com.shengsiyuan.struts2.UserAction and result input) is not available.
先声明一下:我的struts.xml是配置好了的!另外的一个action表单都可以正确的提交,这个类型转换的表单的action我只是原有的struts.xml中加一段(是在package里面加的,也就是package中有两个action,原来的那个action可以用,现在就是新加的action运行时会报上面的错):
<action name="userAction" class="com.shengsiyuan.struts2.UserAction">
<result name="success">/output.jsp</result>
</action>
--------------------------------------
严重: Exception occurred during processing request: No result defined for action com.shengsiyuan.struts2.UserAction and result input
No result defined for action com.shengsiyuan.struts2.UserAction and result input
------解决方案--------------------你出现这个问题的原因是没有配置 input页面 <result name="input">/页面路径</result> STRUTS2 默认类型转换 失败后 会跳转input 页面