No spec violation - the default servlet only use getServletPath() to
figure out what to get. By using a url pattern other than / - the url is
actually split between getServletPath and getPathInfo. (and default
servlet barfs)
The simple workaround is to use a filter mapped to
/resources/css/* w
Thank you Chuck, will definitely try it.
On Wed, May 20, 2009 at 5:24 PM, Caldarale, Charles R
wrote:
>> From: Caldarale, Charles R
>> Subject: RE: Default servlet url mapping issue
>>
>> The DefaultServlet does not currently support any other
>> than /. There&
> From: Caldarale, Charles R
> Subject: RE: Default servlet url mapping issue
>
> The DefaultServlet does not currently support any other
> than /. There's a fairly simple change which seems to allow any
> arbitrary pattern, which you might want to try. It will take m
Thank you for the answers, I'll have to figure something out. And I'm
taking back my words about spec violation :)
Viktoras
On Wed, May 20, 2009 at 4:46 PM, Caldarale, Charles R
wrote:
> The DefaultServlet does not currently support any other than /.
> There's a fairly simple change which se
> From: Viktoras Agejevas [mailto:v.ageje...@gmail.com]
> Subject: Default servlet url mapping issue
>
>
> default
> /resources/css/*
>
The DefaultServlet does not currently support any other than /.
There's a fairly simple change which seems to a
Mark Thomas wrote:
>
>> Viktoras Agejevas wrote:
>>
>>> Hi,
>>>
>>> I have a weird default servlet url mapping issue
>>> (Tomcat 6.0.18 with fully default configuration).
>>>
>>> Here's my web.xml configuration:
>>
On Wed, May 20, 2009 at 4:38 PM, Serge Fonville
wrote:
> Just out of interest, but where, how and why does it violate the spec?
"The container will recursively try to match the longest path-prefix."
So as I understand all requests /resources/* should be directed to
default servlet (ant they proba
Just out of interest, but where, how and why does it violate the spec?
On Wed, May 20, 2009 at 3:33 PM, Mark Thomas wrote:
> Viktoras Agejevas wrote:
>> Hi,
>>
>> I have a weird default servlet url mapping issue
>> (Tomcat 6.0.18 with fully default configuratio
Viktoras Agejevas wrote:
> Hi,
>
> I have a weird default servlet url mapping issue
> (Tomcat 6.0.18 with fully default configuration).
>
> Here's my web.xml configuration:
>
>
>
> AnyServlet
> /*
>
>
> default
>
Have you tried a different order?
On Wed, May 20, 2009 at 3:17 PM, Viktoras Agejevas wrote:
> Hi,
>
> I have a weird default servlet url mapping issue
> (Tomcat 6.0.18 with fully default configuration).
>
> Here's my web.xml configuration:
>
>
>
> AnySer
Hi,
I have a weird default servlet url mapping issue
(Tomcat 6.0.18 with fully default configuration).
Here's my web.xml configuration:
AnyServlet
/*
default
/resources/css/*
1. If I request http://localhost:8080/whatever
AnyServlet handles the request. -
11 matches
Mail list logo