Including JSP from Servlet

From Lunarpages Web Hosting Wiki
Jump to: navigation, search

How do I include a JSP file from a servlet?

You can use the following code:

RequestDispatcher rd = request.getRequestDispatcher('include.jsp');
rd.include(request, response);
Share |
Want to read this in another language?