What about <map:match type="regexp" pattern="^gallery[/]?$"> as a better
solution? (if relative links are not an issue)

Geoff Howard

> -----Original Message-----
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
>
>  > I posted a question to this list, but no better
>  > solution was posted nor any hint, why the problem
>  > exists.
>
> I don't know a better solution, but isn't the reason obvious?
>
> http://localhost:8080/cocoon/mount/tm/gallery/ points to a directory
> 'gallery'
>
> while
> http://localhost:8080/cocoon/mount/tm/gallery points to a file 'gallery'.
>
> 'gallery' is of course different to 'gallery/'.
>
> You can match on "gallery**" to catch both, but beware, that you are on
> 2 different directory levels, so relative links may not work in one
> case. So maybe your redirect is already the best solution.
>
> Regards,
>
> Joerg
>
> SAXESS - Hussayn Dabbous wrote:
> > I had essentially the same problem with my webapp.
> > I solved it as follows:
> >
> > <map:match pattern="gallery">
> >   <map:redirect-to session="false" uri="gallery/"/>
> > </map:match>
> >
> > <map:match pattern="gallery/**">
> >   <map:mount uri-prefix="gallery"
> >              check-reload="yes"
> >              reload-method="synchron"
> >              src="gallery/" />
> > </map:match>
> >
> > I posted a question to this list, but no better
> > solution was posted nor any hint, why the problem
> > exists.
> >


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to