Thank you Chuck, will definitely try it.

On Wed, May 20, 2009 at 5:24 PM, Caldarale, Charles R
<chuck.caldar...@unisys.com> wrote:
>> From: Caldarale, Charles R
>> Subject: RE: Default servlet url mapping issue
>>
>> The DefaultServlet does not currently support any <url-pattern> other
>> than /.  There's a fairly simple change which seems to allow any
>> arbitrary pattern, which you might want to try.  It will take me a bit
>> to dig up the code, but I'll send it out when I find it.
>
> Here's the code, based on 6.0.18.  Change lines 299-302 of 
> org/apache/catalina/servlets/DefaultServlet.java from
>
>        String result = request.getPathInfo();
>        if (result == null) {
>            result = request.getServletPath();
>        }
>
> to
>        String result = request.getPathInfo();
>        if (result == null) {
>            result = request.getServletPath();
>        } else {
>            result = request.getServletPath() + result;
>        }
>
> (Some of the lines are unchanged; they're included just to provide context.)  
> As you might imagine, this has undergone only limited testing.
>
>  - 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

Reply via email to