ForwardAction是統(tǒng)一訪問形式
配置struts-config.xml即可
<action-mappings>
<action path="/preAddStudentAction" forward="/WEB-INF/AddStudent.jsp" />
<forward name="success" path="/login_success.jsp"/>
</action-mappings>
全局的
<global-forwards>
<forward name="success" path="/login_success.jsp"/>
</global-forwards>
對(duì)象名為ActionFroward,運(yùn)行期不能改修配置,即調(diào)用froward.setReadirect(false);
ForwardAction執(zhí)行完所有內(nèi)容,forward屬性到轉(zhuǎn)向頁面就停了
posted on 2009-11-30 08:12
junly 閱讀(230)
評(píng)論(0) 編輯 收藏 所屬分類:
struts2/struts1.3/JSF