<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 18,  comments - 1,  trackbacks - 0


    <%@page contentType="text/html;charset=gbk" %>
    <%@taglib uri="

    <h3 align="center">Dispatch Action</h3>
    <hr>
    <pre>
    ??? 根據請求中的某個(1)參數的值來調用Action的方法(2)。
    ??? (1)參數名字在&lt;action parameter="method" /&gt;
    ??? (2)方法名字為 method 參數的值。
    </pre>
    <center>
    <a href="${pageContext.request.contextPath}/dispatch.do?method=login">login</a>&nbsp;&nbsp;&nbsp;
    <a href="${pageContext.request.contextPath}/dispatch.do?method=find">find</a>&nbsp;&nbsp;&nbsp;
    <a href="${pageContext.request.contextPath}/dispatch.do?method=findById">findById</a>&nbsp;&nbsp;&nbsp;
    <a href="${pageContext.request.contextPath}/dispatch.do?method=register">register</a>&nbsp;&nbsp;&nbsp;
    <a href="${pageContext.request.contextPath}/dispatch.do?method=remove">remove</a>&nbsp;&nbsp;&nbsp;
    <a href="${pageContext.request.contextPath}/dispatch.do?method=modify">modify</a>
    </center>
    <hr>
    <h3 align="center">LookupDispatch Action</h3>
    <hr>
    <pre>???
    </pre>
    <center>
    <form method="post" action="${pageContext.request.contextPath}/lookup.do">
    ??? <input type="submit" value="<bean:message key="submit.login"/>" name="method">
    ??? <input type="submit" value="<bean:message key="submit.find"/>" name="method">
    ??? <input type="submit" value="<bean:message key="submit.findById"/>" name="method">
    ??? <input type="submit" value="<bean:message key="submit.register"/>" name="method">
    ??? <input type="submit" value="<bean:message key="submit.remove"/>" name="method">
    ??? <input type="submit" value="<bean:message key="submit.modify"/>" name="method">
    </form>
    </center>
    <!--
    <h3 align="center">LookupDispatch Action</h3>
    <hr>
    <pre>???
    </pre>
    <center>
    <form method="post" action="${pageContext.request.contextPath}/lookup.do">
    ???
    ??? <input type="hidden" name="method" value="login">
    ???
    ??? <input type="submit" value="login" name="m" onclick="this.form.method.value='login'">
    ??? <input type="submit" value="find" name="m" onclick="this.form.method.value='find'">
    ??? <input type="submit" value="findById" name="m" onclick="this.form.method.value='findById'">
    ??? <input type="submit" value="register" name="m" onclick="this.form.method.value='register'">
    ??? <input type="submit" value="remove" name="m" onclick="this.form.method.value='remove'">
    ??? <input type="submit" value="modify" name="m" onclick="this.form.method.value='modify'">
    </form>
    </center>
    -->
    <hr>
    <h3 align="center">MappingDispatch Action</h3>
    <hr>
    <pre>
    ??? 根據<action>標記的parameter屬性的值來調用Action的方法(1)。
    ??? (1)方法名字為 parameter屬性的值。
    </pre>
    <center>
    <a href="${pageContext.request.contextPath}/mapping/login.do">login</a>&nbsp;&nbsp;&nbsp;
    <a href="${pageContext.request.contextPath}/mapping/find.do">find</a>&nbsp;&nbsp;&nbsp;
    <a href="${pageContext.request.contextPath}/mapping/findById.do?id=1">findById</a>&nbsp;&nbsp;&nbsp;
    <a href="${pageContext.request.contextPath}/mapping/register.do">register</a>&nbsp;&nbsp;&nbsp;
    <a href="${pageContext.request.contextPath}/mapping/remove.do?id=2">remove</a>&nbsp;&nbsp;&nbsp;
    <a href="${pageContext.request.contextPath}/mapping/modify.do">modify</a>
    </center>







    =====================================================

    <?xml version="1.0" encoding="gb2312" ?>

    <!DOCTYPE struts-config PUBLIC
    ????????? "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
    ????????? "

    <struts-config>

    ??? <form-beans>
    ??????? <form-bean name="loginForm" type="com.allanlxf.action.LoginForm"/>
    ??????? <form-bean name="userForm" type="org.apache.struts.action.DynaActionForm">
    ??????????? <form-property name="userName" type="java.lang.String" />
    ??????????? <form-property name="password" type="java.lang.String" />
    ??????? </form-bean>
    ??? </form-beans>
    ???
    ??? <action-mappings>
    ???
    ??????? <action?? path="/core/login"? type="com.allanlxf.action.LoginAction"
    ?????????????????? name="loginForm" input="/core/login.jsp" validate="true" scope="request">
    ????????? <exception key="errors.root"
    ?????????????????????? path="/core/error.jsp"
    ?????????????????????? type="com.allanlxf.biz.IllegalUserException" />
    ????????? <forward name="success" path="/core/success.jsp" redirect="true"/>
    ????????? <forward name="fail" path="/core/fail.jsp" />
    ??????? </action>
    ???????
    ??????? <action?? path="/dispatch"? type="com.allanlxf.struts.actions.UserAction" parameter="method">
    ????????? <forward name="login" path="/actions/pages/login_next.jsp" />
    ????????? <forward name="find" path="/actions/pages/find_next.jsp" />
    ????????? <forward name="findById" path="/actions/pages/findById_next.jsp" />
    ????????? <forward name="remove" path="/actions/pages/remove_next.jsp" />
    ????????? <forward name="modify" path="/actions/pages/modify_next.jsp" />
    ????????? <forward name="register" path="/actions/pages/register_next.jsp" />
    ??????? </action>
    ???????
    ??????? <action?? path="/mapping/login"? type="com.allanlxf.struts.actions.UserMappingAction" parameter="login">
    ????????? <forward name="next" path="/actions/pages/login_next.jsp" />
    ??????? </action>
    ???????
    ??????? <action?? path="/mapping/find"? type="com.allanlxf.struts.actions.UserMappingAction"? parameter="find">
    ????????? <forward name="next" path="/actions/pages/find_next.jsp" />
    ??????? </action>
    ???????
    ??????? <action?? path="/mapping/findById"? type="com.allanlxf.struts.actions.UserMappingAction"? parameter="findById">
    ????????? <forward name="next" path="/actions/pages/findById_next.jsp" />
    ??????? </action>
    ???????
    ??????? <action?? path="/mapping/remove"? type="com.allanlxf.struts.actions.UserMappingAction"? parameter="remove">
    ????????? <forward name="next" path="/actions/pages/remove_next.jsp" />
    ??????? </action>
    ???????
    ??????? <action?? path="/mapping/modify"? type="com.allanlxf.struts.actions.UserMappingAction"? parameter="modify">
    ????????? <forward name="next" path="/actions/pages/modify_next.jsp" />
    ??????? </action>
    ???????
    ??????? <action?? path="/mapping/register"? type="com.allanlxf.struts.actions.UserMappingAction"? parameter="register">
    ????????? <forward name="next" path="/actions/pages/register_next.jsp" />
    ??????? </action>
    ???????
    ??????? <action?? path="/lookup"? type="com.allanlxf.struts.actions.UserLookupAction" parameter="method">
    ????????? <forward name="login" path="/actions/pages/login_next.jsp" />
    ????????? <forward name="find" path="/actions/pages/find_next.jsp" />
    ????????? <forward name="findById" path="/actions/pages/findById_next.jsp" />
    ????????? <forward name="remove" path="/actions/pages/remove_next.jsp" />
    ????????? <forward name="modify" path="/actions/pages/modify_next.jsp" />
    ????????? <forward name="register" path="/actions/pages/register_next.jsp" />
    ??????? </action>
    ???????
    ??????? <action?? path="/dyna/register"? type="com.allanlxf.action.RegisterAction"
    ?????????????????? name="userForm">
    ????????? <forward name="success" path="/dyna/success.jsp"/>
    ??????? </action>
    ???????
    ??? </action-mappings>
    ???
    ??? <message-resources parameter="com.allanlxf.MessageResources" />
    ?????????????????
    </struts-config>



    只有注冊用戶登錄后才能發表評論。


    網站導航:
    博客園   IT新聞   Chat2DB   C++博客   博問  
     
    <2007年4月>
    25262728293031
    1234567
    891011121314
    15161718192021
    22232425262728
    293012345

    常用鏈接

    留言簿(1)

    隨筆分類

    隨筆檔案

    相冊

    收藏夾

    朋友

    搜索

    •  

    最新評論

    評論排行榜

    主站蜘蛛池模板: 最近免费最新高清中文字幕韩国| 免费精品视频在线| 98精品全国免费观看视频| 久久亚洲高清综合| 成人a毛片视频免费看| 亚洲成人影院在线观看| 午夜在线免费视频| 国产午夜亚洲不卡| 嫩草在线视频www免费看| 亚洲成a人片在线观看无码| 免费看一区二区三区四区| 亚洲av无码一区二区三区乱子伦 | 无码乱人伦一区二区亚洲一| 一级做受视频免费是看美女| 亚洲天堂中文字幕在线| 中国极品美軳免费观看| 亚洲Aⅴ无码专区在线观看q| 在线免费观看你懂的| 亚洲国色天香视频| 美女被免费视频网站a国产| 青娱乐在线视频免费观看| 亚洲国产一区视频| 久草免费福利视频| 亚洲国产综合精品| 免费特级黄毛片在线成人观看| 美女被爆羞羞网站在免费观看| 亚洲真人日本在线| 久久精品免费电影| 亚洲一区二区三区成人网站| 亚洲AⅤ视频一区二区三区| 国产在线精品免费aaa片| 91亚洲精品自在在线观看| 国产福利免费在线观看| 中文字幕免费在线观看动作大片| 久久av无码专区亚洲av桃花岛| 免费看少妇作爱视频| 中文字幕版免费电影网站| 亚洲精品亚洲人成在线播放| 免费在线观看理论片| 久9久9精品免费观看| 狠狠色伊人亚洲综合网站色|