Example #1
0
 /**
  * Allows one to forward the following request and response using the request dispatcher.
  *
  * @param resource the resource to forward the request/response to.
  * @param request the http request to forward.
  * @param response the http response to forward.
  * @throws javax.servlet.ServletException
  * @throws java.io.IOException
  */
 protected void forward(String resource, HttpServletRequest request, HttpServletResponse response)
     throws ServletException, IOException {
   RequestDispatcher rd = request.getRequestDispatcher(resource);
   rd.forward(request, response);
 }