cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: help with redirect and forward
Date Thu, 16 May 2002 02:44:40 GMT
> From: Vij, Bhavna [mailto:bav2@njit.edu]
> 
> Hi All,
> I am not able to redirect or forward to another pages
> I need to do something like that.
> There's a login page with username and password. If the login is
> successfull, I need to forward it to page1 else I need to go back to
login
> page and display error.
> I am able to access the request parameters but neither redirect nor
forward
> works.......
> 
> Neither of the following works
> - response.sendRedirect("http://localhost:8888/cocoon/");
> 
> - <response:send-redirect location="login-page.xml"/>
> - <response:send-redirect url="http://localhost:8888/cocoon/"/>

Try using this as close to the top of the page as possible - might
help...

 
> Can someone help me with that......
> Any help will be greatly appreciated...

...also it is not a good idea to redirect from the page. Do this from
sitemap and you will have much fewer issues.

Vadim

> 
> Thanks in Advance,
> Bhavna


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

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