File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 3226
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
It's not a secret anymore!