tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: troubleshooting getPathInfo in jsp files
Date Wed, 15 Dec 2010 00:34:55 GMT
> From: Mark Thomas [mailto:markt@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message