cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From philguillard <philguill...@gmail.com>
Subject Re: get URI inside flowscript
Date Fri, 10 Feb 2006 11:55:37 GMT
I don't remember well, there should be cocoon.request.getServerName, and 
if you don't find for context and sitemapUri simply pass it as parameter 
from sitemap where it easy to get these values..
For your redirection try cocoon.redirectTo("http://www.google.com", 
true) to make an external redirect.


Phil

Brian Maddy wrote:
> Does anyone know how to get your base URI from within flowscript?
> 
> I am trying to do a cocoon.redirectTo("somePage"), but it seems to be 
> redirecting to the root directory of my webapp.  I figure I could do 
> something like:
> cocoon.redirectTo("/" + base_uri + "somePage");
> 
> Additionally,  the following line should work shouldn't it? 
> cocoon.redirectTo("http://www.google.com");
> It gives me this error:
> org.xml.sax.SAXParseException: The element type "meta" must be 
> terminated by the matching end-tag "</meta>".
> Any ideas?
> 
> Thanks,
> Brian
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

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


Mime
View raw message