> From: Mark Thomas [mailto:ma...@apache.org] > Subject: Re: troubleshooting getPathInfo in jsp files
> I can get Tomcat to behave the way you want but configuring web.xml > isn't going to be pretty. I'd strongly recommend moving to an approach > more in line with the Servlet spec rather than the current > container-specific mapping approach. > If you have a JSP in the root of your webapp called snoop.jsp (I took > this from the examples web app) then you'll need to add the following: > <servlet> > <servlet-name>snoop</servlet-name> > <jsp-file>/snoop.jsp</jsp-file> > </servlet> > <servlet-mapping> > <servlet-name>snoop</servlet-name> > <url-pattern>/snoop.jsp/*</url-pattern> > </servlet-mapping> > As I said, adding that for every single JSP isn't going to be pretty but > it does give you a way to make this work on Tomcat (or any other container). Perhaps tweaking the ant JSP pre-compilation script to generate the mappings would help ease the pain. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org