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等。
<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等。
相关文章推荐
- No result defined for action com.weiyi.bbs.action.LoginAction and result success总结
- 关于初学者Could not find action or result :No result defined for action com.lyw.action.LoginAction and result success
- Struts2中 No result defined for action com.test.action.LoginAction and result success
- No result defined for action com.stickon.action.loginAction and result success
- 错误日志No result defined for action com.action.LoginAction and result success.
- No result defined for action action.LoginAction and result success 解决
- No result defined for action action.LoginAction and result success
- No result defined for action com.lk.IndexAction and result success
- No result defined for action action.LoginAction and result success
- HTTP Status 404 - No result defined for action com.lnzkx.action.PeronAction and result success
- HTTP Status 404 - No result defined for action com.csdhsm.struts.action.LoginAction and result error
- No result defined for action action.LoginAction and result success 问题解决
- action莫名报错 No result defined for action com.action.Logout and result success
- No result defined for action com.frank.action.RegistAction and result success
- No result defined for action action.LoginAction and result success
- No result defined for action com.xiao.action.Haha and result success
- No result defined for action com.pdx.action.contactAction and result success
- The requested resource (No result defined for action org.action.LoginAction and result success) is
- HTTP Status 404 - No result defined for action com.ssk.action.Register and result success
- No result defined for action xxx.action.LoginAction and result success总结