cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alten, Jelle Paul (sds-sp)" <>
Subject RE: Redirecting
Date Tue, 08 Apr 2003 11:00:04 GMT
Hi Nesto, Stavros,

That indeed should sove it.
Since you didn't add a '/' to the directory, you are still in the parent
sitemap. So http://localhost:8080/cocoon/myApp never gets you into the myApp
sitemap unless you make a redirect to http://localhost:8080/cocoon/myApp/ in
the main sitemap. You could make a general match on "*" at the end of the
parent sitemap to redirect all unknown requests to the (possible)

Off course we should make a note to tell users to not try to suppres the
extra '/' while expecting to get into the directory myApp, since it is an
extra http request, but oh well. 

See the following link
for more info on this subject.


-----Oorspronkelijk bericht-----
Van: Stavros Kounis []
Verzonden: dinsdag 8 april 2003 12:43
Onderwerp: Re: Redirecting

i had the same problem in sub-sitemap

i guest that parent sitemap has a pipeline match pattern that catch your

i have change the line position of sub site map entry in parent sitemap
and have solve this problem

hope this help


On Tue, 8 Apr 2003, Nesto wrote:

> Hi!
> I want to set a simple redirect in my Application, but I can't get it!
> My goal is to write the main url of the application as:
> http://localhost:8080/cocoon/myApp
> while now I have:  http://localhost:8080/cocoon/myApp/index
> It's a simple question with a simple answer, as I read on the Wiki, so I
> don't know why it doesn't works.
> My sitemap is this:
> <map:pipelines>
> <map:pipeline>
>     <map:match pattern="">
>         <map:redirect-to resource="index"/>
>     </map:match>
> <map:match pattern="index">
>     <map:generate src="index-page.xml"/>
>     ...
> </map:match>
> ....
> I tried also to write the tag <map:redirect-to uri="index"/> with the same
> result.
> If I try these requests:
> http://localhost:8080/cocoon/myApp I get a "Resource not found" error. (Of
> course the resource exists!)
> http://localhost:8080/cocoon/myApp/ I get the directory listing.
> Where is the error??
> Thank you for all your answers!
> Nesto
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message