From: "Andy Eastham" <[EMAIL PROTECTED]>
Sent: Monday, July 29, 2002 6:43 AM
Subject: RE: forwarding to a jsp using a servlet
> Try this in your doGet / process method:
> (I put my jsps under WEB-INF so they are not servable directly).
>
> String url = FileUtil.makeJspUrl("/WEB_INF/jspDir/test.jsp);
> response.setContentType("text/html");
> ServletContext sc = getServletContext();
> RequestDispatcher rd = sc.getRequestDispatcher(url);
> rd.include(request, response);
Just an FYI in case it ever happens to you, BEA Weblogic will NOT serve JSPs
from WEB-INF, and this can become a porting issue if you ever try to move
your application in that direction.
This particularly notable for things like 'includes'.
I can see how the spec could be read either way, it's a point that should be
clarified in the future, IMHO.
Regards,
Will Hartung
([EMAIL PROTECTED])
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>