"Christopher Schultz" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Mon,
>
> Mon Cab wrote:
>>       <url-pattern>/sexy*</url-pattern>
>
> I believe that the pattern "/sexy*" does not match when the * matches
> nothing. I think that * acts like + in a regular expression. You might 
> want:
>
>       <servlet-name>action</servlet-name>
>       <url-pattern>/mymodule/sexy*</url-pattern>
>       <url-pattern>/mymodule/sexy</url-pattern>
>
> That is, map both "/sexy*" and "/sexy" to the servlet.
>

Nope, "/sexy*" is an exact-match pattern to a URL that is literally 
"/myapp/sexy*".  The servlet-spec doesn't implement arbitrary regex 
patterns, only the ones specified.  In this case you need to have the 
url-pattern to be /sexy/* to get a prefix match.  And, yes, this will match 
to a URL of "/myapp/sexy" (with an empty pathInfo).

> - -chris
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGsP019CaO5/Lv0PARAmwEAJ9HU8lAnNcIR7RqbeQLvfTdE/4kIACdHp54
> lpCG2nsMLk2h3TITEGMNZmE=
> =xiSJ
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to