You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Echoes <ec...@free.fr> on 2000/05/29 12:58:05 UTC

Re: Doing a redirect in XSP

William Urquhart wrote:
> 
> Hi all,
> 
> I have various pages that allow users to create and maintain database
> records with code for displaying and inserting (or updating) in the same
> page. However, since the page's FORM target is _self, I need a way of
> doing a redirect so that I can return the user to the menu on success or
> an error page on failure. Can this be done, if so, how?
> 
> I had thought of "tapping" into the Tomcat/Cocoon HTTP Servlet but again
> I don't know how to go about this.

 Just use the response object :

 response.sendRedirect("menu.xml");


	Fabrice

Re: Doing a redirect in XSP

Posted by William Urquhart <wi...@devnet-uk.net>.
What can I say. I prime example of a need to RTFM. Sorry.

Echoes wrote:
> 
> William Urquhart wrote:
> >
> > Hi all,
> >
> > I have various pages that allow users to create and maintain database
> > records with code for displaying and inserting (or updating) in the same
> > page. However, since the page's FORM target is _self, I need a way of
> > doing a redirect so that I can return the user to the menu on success or
> > an error page on failure. Can this be done, if so, how?
> >
> > I had thought of "tapping" into the Tomcat/Cocoon HTTP Servlet but again
> > I don't know how to go about this.
> 
>  Just use the response object :
> 
>  response.sendRedirect("menu.xml");
> 
>         Fabrice
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

-- 
Kind regards,


William.

Wm. G. Urquhart, Oracle DBA
EuroNet*Internet BV, http://www.euronet.nl/
Muiderstraat 1, Postbus 11095, 1001 GB Amsterdam
T:+31 20 5355263, F:+31 20 5355400, E: williamu@nl.euro.net
M:+31 628206038 ICQ: 56047340