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 from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "calling Jsp from servlet" Watch "calling Jsp from servlet" New topic

calling Jsp from servlet

Vasantha Prabha
Ranch Hand

Joined: Oct 02, 2003
Posts: 108
Can any one tell my or give me samples code to pass the request or call the Jsp from servlet

Regards,Vasantha<p>Great minds discuss ideas. Average minds discuss events. Small minds discuss people.
Anand Ko
Ranch Hand

Joined: Dec 03, 2003
Posts: 79
Create the RequestDispatcher and forward it to jsp.
I don;t remember the code. It's been 5 months wrote my last java line.

Anand<br />SCJP 1.4, SCWCD 1.4, SCEA 5.0(1/3)
Sekhar Kadiyala
Ranch Hand

Joined: Feb 17, 2004
Posts: 170
Assume that you have called a logon sesrvelet from logon.jsp and after verification you want to show AfterLogin.jsp.

wood burning stoves
subject: calling Jsp from servlet
Similar Threads
how to redirect from a single servlet to more than one jsp's?
OutputStream irritates
JSP to Servlet call
Attributes sent from JSP wont show in Servlet
session variable