出现原因:没有为/registe 设置input属性
解决办法: 在struts-config.xml文件的<action path="/registe">设置其input属性,
例如:
<action path="/registe.jsp" name="registeForm" type="com.yourcompany.struts.action.RegisteAction" >
<set-property property="cancellable" value="true" />
<forward name="s" path="/success.jsp"></forward>
</action>
注: <!-- input表示当前端出现错误,要跳转到的页面 -->

本文详细解释了在使用Struts框架时,遇到注册页面输入错误导致跳转异常的问题,并提供了通过在struts-config.xml文件中设置input属性来解决此问题的方法。
13万+

被折叠的 条评论
为什么被折叠?



