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

    

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!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 @   _启明  阅读(3393)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示