Another way i can think of is:
RequestDispatcher.include("path of jsp");
The diff between this and forward is that, in this case the jsp will return
the control to the calling servlet, whereas in case of forward, jsp will
send the response to the browser.
----- Original Message -----
From: Alok Kumar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 18, 2000 2:33 PM
Subject: How Servlet can hand-off to a JSP page
> Hi All,
> I wanted to know how any Servlet can forwarded to a JSP page.
> I know one way
> getServletConfig().getServletContext().getRequestDispatcher("path of the
jsp
> to be called").forward(request, response);
> Is there any other way we can pass forward a from Servlet to JSP.
> waiting for a earliest reply
> alok kumar
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets