You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Vij, Bhavna" <ba...@njit.edu> on 2002/05/15 17:33:09 UTC

help with redirect and forward

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/"/>


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

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


RE: help with redirect and forward

Posted by Vadim Gritsenko <va...@verizon.net>.
> 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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>