cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: [c2] simple question on map:redirect-to semantics
Date Fri, 18 May 2001 18:15:48 GMT
On Fri, 18 May 2001, giacomo wrote:

> > > Have you tried using
> > >
> > >  <map:match pattern="foo/bar">
> > >    <map:redirect-to uri="../bat"/>
> > >  </map:match>
> >
> > sure, and that works, but i think it's ugly and hard to maintain if you
> > deal with deeply structured patterns. e.g. if i move foo/bar to
> > resources/foo/bar, i also have to change the redirect uri.
>
> Well, can you imagine what Stefano would say about that? Better plan you
> URI space!

and i'm also sure that he'd recommend having a webapp-mount-point
independent way of writing webapp-absolute urls!

<map:match pattern="foo/bar/bat/cat/dog">
  <map:redirect-to uri="../../../../bat"/>
</map:match>

is much harder to parse (for people anyway) and maintain than

<map:match pattern="foo/bar/bat/cat/dog">
  <map:redirect-to uri="context://bat"/>
</map:match>

- doanld


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message