On Wed, Sep 30, 2009 at 5:16 PM, dominiksh <domini...@googlemail.com> wrote:
> [...]
> <outbound-rule enabled="true">
> <from>/xyz/(.*)</from>
> <to encode="true" last="true">/xyz/added/$1</to>
> </outbound-rule>
>
> What I want to achieve is to turn e.g. http://www.example.com/xyz/foo.jsp
> into http://www.example.com/xyz/added/foo.jsp
>
> What I get is http://www.example.com/xyz/added/added/added/foo.jsp,
> which is obviously not what I expected. :-(
What's happening is you've probably got uwf setup to listen to
FORWARDs as well as REQUEST, so when it hits your rule the first time,
it rewrites it and stops, then does an FORWARD, at which point it
picks up on the request again and rewrites it.
I'd advise you to remove the <dispatcher>FORWARD</dispatcher> line
from your uwf filter-mapping in web.xml. If you need uwf to listen to
internal redirects you'll have to rewrite your rule to make sure it
can only match the first url and not the second (in this case perhaps
with negative lookahead).
regards,
Wim