added post params to dispatch test

This commit is contained in:
Greg Wilkins 2014-05-12 12:52:56 +02:00
parent 98d41be310
commit 8ce1840b88
2 changed files with 17 additions and 1 deletions

View File

@ -43,6 +43,12 @@ import javax.servlet.http.HttpServletResponse;
public class DispatchServlet extends HttpServlet
{
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
{
doGet(req, resp);
}
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{

View File

@ -8,7 +8,7 @@
<BODY >
<A HREF="http://www.eclipse.org/jetty"><IMG SRC="images/jetty_banner.gif"></A>
<h1>Request Dispatching Tests</h1>
<h1>Request Dispatching Query Tests</h1>
<p><ul>
<li><a href="forward/info?depth=0&p0=A">forward/info?depth=0&p0=A</a></li>
<li><a href="include/info?depth=0&p0=A">include/info?depth=0&p0=A</a></li>
@ -18,6 +18,16 @@
<li><a href="include/include/info?depth=0&p0=A">include/include/info?depth=0&p0=A</a></li>
</ul>
</p>
<h1>Request Dispatching Form POST Tests</h1>
<p><ul>
<li><form action="forward/info" method="POST"><input type="hidden" name="depth" value="0"><input type="hidden" name="p0" value="A"><input type="submit" value="forward/info"></form></li>
<li><form action="include/info" method="POST"><input type="hidden" name="depth" value="0"><input type="hidden" name="p0" value="A"><input type="submit" value="include/info"></form></li>
<li><form action="forward/forward/info" method="POST"><input type="hidden" name="depth" value="0"><input type="hidden" name="p0" value="A"><input type="submit" value="forward/forward/info"></form></li>
<li><form action="forward/include/info" method="POST"><input type="hidden" name="depth" value="0"><input type="hidden" name="p0" value="A"><input type="submit" value="forward/include/info"></form></li>
<li><form action="include/forward/info" method="POST"><input type="hidden" name="depth" value="0"><input type="hidden" name="p0" value="A"><input type="submit" value="include/forward/info"></form></li>
<li><form action="include/include/info" method="POST"><input type="hidden" name="depth" value="0"><input type="hidden" name="p0" value="A"><input type="submit" value="include/include/info"></form></li>
</ul>
</p>
<center>
<hr/>