cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alten, Jelle Paul (sds-sp)" <jelle.paul.al...@ordina.nl>
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)
subsitemaps.

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 http://www.netmechanic.com/news/vol4/load_no11.htm
for more info on this subject.

Jelle

-----Oorspronkelijk bericht-----
Van: Stavros Kounis [mailto:gounis@osmosis.gr]
Verzonden: dinsdag 8 april 2003 12:43
Aan: cocoon-users@xml.apache.org
Onderwerp: Re: Redirecting


i had the same problem in sub-sitemap

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

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

hope this help

--stavros

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: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


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

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


Mime
View raw message