您的位置:首页 > 其它

No result defined for action com.standard.action.LoginAction and result success

2013-11-27 10:45 465 查看
Login.jsp:

<body>

<form action="login">

username:<input type="text" name="username"/>

password:<input type="password" name="pwd"/>

<input type="submit" value="submit"/>

</form>

</body>

struts.xml:

<struts>

<package name="s1" extends="struts-default">

<action name="login" class="com.struts2.LoginAction">

<result name="success">/Result.jsp</result>

</action>

</package>

</struts>

出现错误:警告: Could not find action or result

No result defined for action com.struts2.LoginAction and result success

原因在于 : 红色部分和struts保留字有冲突,换成其他任意的字母标识序列比如loginAction,tologin等。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐