hi sathish,
to call a jsp from a servlet u can follow this method this is much
simpler this code works fine for me.
String redirect=res.encodeRedirectUrl("path of the jsp");
res.sendRedirect(redirect);
when u give the path of your jsp u can also pass the parameters.
where res is your HttpServletResponse object.
regards
saravana kumar
> ----------
> From: Sandu, Sathish[SMTP:[EMAIL PROTECTED]]
> Reply To: Sandu, Sathish
> Sent: Friday, October 01, 1999 9:25 PM
> To: [EMAIL PROTECTED]
> Subject: Problems with callPage() method
>
> Hello All,
> I am trying to call a JSP page from a servlet. I am using the callPage
> method like this:
>
> com.sun.server.http.HttpServiceResponse response =
> (HttpServiceResponse)
> res;
> response.callPage("/reports.jsp", req);
>
> where
> res -> HttpServletResponse
> req -> HttpServletRequest
>
> The compiler is complaining about not finding the
> "com.sun.server.http.HttpServiceResponse" .
>
> Could somebody help me with this. Your help is highly appreciated.
>
> Thanks.
> Sathish.
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html