<package name="member" namespace="/member" extends="struts-default">
<action name="regist" class="cc.apl330.action.MemberAction">
<result >/suc.jsp</result>
<result name="isExists">/fail.jsp</result>
</action>
</package>
运行正常,用户注册成功后会跳转到suc.jsp
如果将配置改成
<package name="member" namespace="/member" extends="struts-default">
<action name="regist" class="cc.apl330.action.MemberAction">
<result >/suc.html</result>
<result name="isExists">/fail.jsp</result>
</action>
</package>
运行不正常,用户输入数据后,点击确定。查看数据库,数据库写入正常,但页面空白,地址栏却正常:http://localhost:8080/test/member/regist