<h3 align="center">Dispatch Action</h3>
<%@page contentType="text/html;charset=gbk" %>
<%@taglib uri="
<hr>
<pre>
??? 根據請求中的某個(1)參數的值來調用Action的方法(2)。
??? (1)參數名字在<action parameter="method" />
??? (2)方法名字為 method 參數的值。
</pre>
<center>
<a href="${pageContext.request.contextPath}/dispatch.do?method=login">login</a>
<a href="${pageContext.request.contextPath}/dispatch.do?method=find">find</a>
<a href="${pageContext.request.contextPath}/dispatch.do?method=findById">findById</a>
<a href="${pageContext.request.contextPath}/dispatch.do?method=register">register</a>
<a href="${pageContext.request.contextPath}/dispatch.do?method=remove">remove</a>
<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>
<a href="${pageContext.request.contextPath}/mapping/find.do">find</a>
<a href="${pageContext.request.contextPath}/mapping/findById.do?id=1">findById</a>
<a href="${pageContext.request.contextPath}/mapping/register.do">register</a>
<a href="${pageContext.request.contextPath}/mapping/remove.do?id=2">remove</a>
<a href="${pageContext.request.contextPath}/mapping/modify.do">modify</a>
</center>
=====================================================
<?xml version="1.0" encoding="gb2312" ?>