You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Eric Ladouceur <la...@yahoo.com> on 2003/12/17 16:40:44 UTC

Problem with requests using multiple subdirectories

Hello cocoon users,
 
   I am having a problem with my sitemap and my URLs when trying to implement multiple sub-levels under my root.  Here is a brief description of what I am trying to do:
 
I have 3 main branchs:
 
1- http://localhost/cocoon/test/authentication/XYZ  where XYZ can be login, do-login and do-logout
2- http://localhost/cocoon/test/actions/XYZ  where XYZ can be host/status, host/users, stats/cpu, stats/disks, etc...
3- http://localhost/cocoon/test/reports/XYZ where XYZ can be load/weekly, load/monthly, etc...
 
So first the user take the authentication branch, authenticate and then go on the reports or the actions branch.
 
My problem is after I finished the login part, my browser's URL is in the authentication path and when I try to redirect the user to "actions/firstaction", I get an error saying "can't find pipeline authentication/actions/firstaction".  What I need to do is tell the browser that actions/firstaction is relative to my servlet path and NOT the current path (authentication/XYZ).  
 
So my question is how can I, in the sitemap or in my XSLs, refer my web URLs to be relative to the servlet path and not the current path?  Do I have to rebuild a full URL for each and every link and if so, how do I do this?  Using request:contextPath?  Or somethign else?
 
Thanks a lot for your time,
Eric


---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard