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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
jQuery in Action, 2nd edition
subject: calling JSP page from SERVLET