首页 > 程序开发 > 综合编程 > 其他综合 >

HTTP Status 404 - No result defined for action com.ssk.action.Register and result success

2013-05-17

HTTP Status 404 - No result defined for action com.ssk.action.Register and result success调试好几个小时···最后发现问题,是因为<action name="register" class="com.ssk.action.Registe...

HTTP Status 404 - No result defined for action com.ssk.action.Register and result success

调试好几个小时···最后发现问题,是因为

<action name="register" class="com.ssk.action.Register" >
<result name="success">/success.jsp</result>
<result name="error">/error.jsp</result>
</action>

应该是和struts中关键字“register”冲突

解决:把action名字换了就ok:

<action name="register2" class="com.ssk.action.Register" >
<result name="success">/success.jsp</result>
<result name="error">/error.jsp</result>
</action>

相关文章
最新文章
热点推荐