Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Servlets and the fly likes calling JSP page from SERVLET Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "calling JSP page from SERVLET" Watch "calling JSP page from SERVLET" New topic

calling JSP page from SERVLET

Peter Bauer

Joined: Feb 01, 2007
Posts: 4
Hi Folks,
How r u
can u give me a clue to call JSP page from a servlet
thanks for ur help
Tony Alicea

Joined: Jan 30, 2000
Posts: 3222
getServletContext().getRequestDispatcher("/my_jspPage.jsp").forward(request, response);
getServletContext().getRequestDispatcher("/my_jspPage.jsp").include(request, response);
[This message has been edited by Tony Alicea (edited September 27, 2000).]

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
I agree. Here's the link:
subject: calling JSP page from SERVLET