jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <li...@ehatchersolutions.com>
Subject Fw: ServletRedirector mapping
Date Wed, 07 Nov 2001 03:21:36 GMT
Did this message get lost in the shuffle?   Vincent and Nick are always so
quick to reply I'm wondering if this message got lost somehow.

Comments?

Thanks,
    Erik

----- Original Message -----
From: "Erik Hatcher" <lists@ehatchersolutions.com>
To: <cactus-user@jakarta.apache.org>
Sent: Monday, November 05, 2001 4:30 PM
Subject: ServletRedirector mapping


> This might be a cactus-dev issue, but I'll toss it out here since all
> relevant parties are on this list also.  In order to get Cactus working, I
> had to modify the servlet mapping to have "/*" rather than "/" at the end
of
> ServletRedirector, like this:
>
>     <servlet-mapping>
>         <servlet-name>ServletRedirector</servlet-name>
>         <url-pattern>/ServletRedirector/*</url-pattern>
>     </servlet-mapping>
>
> Servlet 2.2 spec says this:
>
> 10.2 Specification of Mappings
> In the web application deployment descriptor, the following syntax is used
> to define mappings:
> . A string beginning with a '/' character and ending with a '/*' postfix
is
> used as a path mapping.
> . A string beginning with a '*.' prefix is used as an extension mapping.
> . All other strings are used as exact matches only
> . A string containing only the '/' character indicates that servlet
> specified by the mapping becomes the "default" servlet of the application.
>
> So it seems the Cactus mapping of ServletRedirector is not compliant with
> the spec.  A quick glance at the Servlet 2.3 spec appears to say the same
> thing as the 2.2 spec.
>
> Is there any reason not to put the "/*" at the end?  It makes it work in
> WebSphere at least!  :)  Are all the other containers Cactus just implying
> the "*"?  I haven't dug into Cactus code to see how it fires things to the
> ServletRedirector - is it sending a GET string to it?  Or just hitting
> /ServletRedirector directly using POST and now URL parameters?
>
> Thanks,
>     Erik
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:cactus-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:cactus-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message