解决 No result defined for action and result input 异常

    

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'list.jsp' starting page</title>
  </head>
  
  <body>
		<s:form action="role_edit">
			<s:hidden name="id" value="id"/>
			<s:textfield name="name"/><br/>
			<s:textarea name="description"/><br/>
			<s:submit value="提交"/>
		</s:form>
  </body>
</html>

上面代码<s:hidden name="id" value="id"> 写错了,导致form数据异常.所以出现了No result defined for action and result input异常。

总结:出现 ,No result defined for action and result input原因有可能有:

1.Action中返回的result,未在struts.xml中配置

2.若去掉代码,执行空代码,调转无问题,有可能是form表达提交的数据错误。

posted @ 2015-02-11 11:32  _启明  阅读(3330)  评论(0编辑  收藏  举报