You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2007/10/12 22:40:26 UTC

Re: [OT] URL Filter + regular expression

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lukas,

lukasK wrote:
> I've got some problem with using regular expression to describe uri. I would
> like to redirect all files (adresses) with .jsp types. According to example
> on http://www.servletsuite.com/servlets/redirectflt.htm the syntax is:
> uri=some_url

I don't see any indication on that page that regular expressions are
supported. Do you? Maybe this is why your regular expressions are not
working.

> How can I define expression affected all .jsp files. I try something like
> this, but it's not working:
> /something/*=url

It looks like this filter is used to map one URI to another, not to do
pattern matching. You might want to contact the original author for
information about this component, since it has almost nothing to do with
Tomcat.

Try looking at http://tuckey.org/urlrewrite/ if you want something that
appears to be more useful.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHD9u69CaO5/Lv0PARAsgNAJ9Vo/jRtZr2lDDs2mAGU3FPiOAa0gCfcBM7
6VOmEZnzJK1c7bogi01DIrE=
=dVWe
-----END PGP SIGNATURE-----

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