Forwards to the specified URL.paramurl a relative URL RequestDispatcher rd = request.getRequestDispatcher(url); rd.forward(request, response);
RequestDispatcher rd = request.getRequestDispatcher(url); rd.forward(request, response);
Returns a URL suitable for redirecting to a JSP page through the controller servlet, as a showPage action.parampage a relative URL to the target page, URL encoded if it contains parameters. return request.getContextPath() + request.getServletPath() + "?action=showPage&page=" + page;
return request.getContextPath() + request.getServletPath() + "?action=showPage&page=" + page;