Billy,

Sorry - I included my File Utility class by mistake.  I hard coded the
result in the message and still left the method call - doh.

Try again:
String url =  "/WEB_INF/jspDir/test.jsp";
response.setContentType("text/html");
ServletContext sc =  setServletContext();
RequestDispatcher rd =  sc.getRequestDispatcher(url);
rd.include(request, response);

Andy


> -----Original Message-----
> From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
> Sent: 29 July 2002 15:11
> To: Tomcat Users List
> Subject: RE: forwarding to a jsp using a servlet
>
>
>
> thanks i will try this
> -------Original Message-------
>
> From: Tomcat Users List
> Date: 29 July 2002 14:46:04
> To: Tomcat Users List
> Subject: RE: forwarding to a jsp using a servlet
>
> Billy,
>
> Try this in your doGet / process method:
> (I put my jsps under WEB-INF so they are not servable directly).
>
> String url =ileUtil.makeJspUrl("/WEB_INF/jspDir/test.jsp);
> response.setContentType("text/html");
> ServletContext sc =etServletContext();
> RequestDispatcher rd =c.getRequestDispatcher(url);
> rd.include(request, response);
>
> Andy
>
> > -----Original Message-----
> > From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
> > Sent: 29 July 2002 13:59
> > To: Tomcat Users List
> > Subject: forwarding to a jsp using a servlet
> >
> >
> > can some one please tell me how i coulod make a forward from a
> > servlet to a
> > jsp i need to use the same url plus
> > i dont want in some cases the destination address apiasring on
> the address
> > bar
> >
> >
> > thanks in advance
> > Billy
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]
> org>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to