问题:
HTTP Status 404 - No result defined for action com.lnzkx.action.PeronAction and result success
type Status report
message No result defined for action com.lnzkx.action.PeronAction and result success
description The requested resource (No result defined for action com.lnzkx.action.PeronAction and result success) is not available.
解决:
struts.xml文件
改前
<package name="hibernate" extends="struts-default">
<action name="savePerson" class="com.lnzkx.action.PersonAction" method="savePerson">
<result name="Success">listAll.jsp</result>
</action>
</package>
改后
<package name="hibernate" extends="struts-default">
<action name="savePerson" class="com.lnzkx.action.PersonAction" method="savePerson">
<result name="success">/listAll.jsp</result>
</action>
</package>
总结:
xml文件很容易错,最好都提示出来或者复制粘贴,避免打错字。