On Friday 15 February 2002 02:20 am, you wrote: > On Wed, Feb 13, 2002 at 12:41:46PM +1100, Rodney Schneider wrote: > > On Wednesday 13 February 2002 04:15 am, you wrote: > > Other options to consider for making pretty URLs work with Turbine > > include: > > <snip> > > > 4. You could write your own servlet to replace the default servlet for > > the webapp, using the default servlet mapping, /. PATH_INFO will also be > > null in this scenario. Your custom servlet could map pretty URLs to the > > ugly Turbine URLs by using a RequestDispatcher.forward(). Check out the > > servlet invoker that comes with Tomcat for ideas on how to implement > > this. > > </snip> > > OK, #4 sounds like a lot of work, and I am not going to pursue it at > this time. So my next question comes out of curiosity. Why is PATH_INFO > null in this scenario? Tomcat's default servlet doesn't lose the > PATH_INFO, so why would a replacement?
I should have mentioned that I only work with Servlet API 2.3 compliant containers, such as Tomcat 4.x. Tomcat's default servlet actually uses request.getServletPath() to extract the path, rather than request.getPathInfo() which would return null. I am not sure what the situation is for Tomcat 3.x or other Servlet API 2.2 containers. Regards, -- Rodney -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
