From 8ce1840b884ce2fc07d1122cd659afd8bb22b5d6 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 12 May 2014 12:52:56 +0200 Subject: [PATCH] added post params to dispatch test --- .../src/main/java/com/acme/DispatchServlet.java | 6 ++++++ .../test-dispatch-webapp/src/main/webapp/index.html | 12 +++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/test-webapps/test-dispatch-webapp/src/main/java/com/acme/DispatchServlet.java b/tests/test-webapps/test-dispatch-webapp/src/main/java/com/acme/DispatchServlet.java index 6ab74979425..f4104042d0a 100644 --- a/tests/test-webapps/test-dispatch-webapp/src/main/java/com/acme/DispatchServlet.java +++ b/tests/test-webapps/test-dispatch-webapp/src/main/java/com/acme/DispatchServlet.java @@ -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 { diff --git a/tests/test-webapps/test-dispatch-webapp/src/main/webapp/index.html b/tests/test-webapps/test-dispatch-webapp/src/main/webapp/index.html index 1011962e0fd..a54062ddb88 100644 --- a/tests/test-webapps/test-dispatch-webapp/src/main/webapp/index.html +++ b/tests/test-webapps/test-dispatch-webapp/src/main/webapp/index.html @@ -8,7 +8,7 @@ -

Request Dispatching Tests

+

Request Dispatching Query Tests

+

Request Dispatching Form POST Tests

+

+