in the tapestry core docs: http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html
2008/6/19 Ezra Epstein <[EMAIL PROTECTED]>: > Thanks. Where is that documented? > > -----Original Message----- > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 18, 2008 10:23 PM > To: Tapestry users > Subject: Re: T5 Sending a 302 redirect off-site from within a Form > handler > > You should be able to simply return a java.net.URL. > > On Wed, Jun 18, 2008 at 9:55 PM, Ezra Epstein > <[EMAIL PROTECTED]> wrote: > > I've got a simple form and an onSubmit() method. When the form > > submission succeeds I want to redirect to another site (full URL) but > > can't figure out how to do that. > > > > > > > > I've tried: > > > > > > > > @Inject > > > > @Service("Response") > > > > private Response tapestryResponse; > > > > > > > > void onSubmit() { > > > > ... > > > > > > tapestryResponse.sendRedirect(offsiteUrlString); > > > > ... > > > > } > > > > > > > > No luck. Also tried: > > > > > > > > @Inject > > > > //@Service("RequestGlobals") > > > > private RequestGlobals requestGlobals; > > > > > > > > void onSubmit() { > > > > ... > > > > > > > requestGlobals.getHTTPServletResponse().sendRedirect(offsiteUrlString); > > > > > > ... > > > > } > > > > > > > > L > > > > The redirect exception doesn't seem to have made it from Tap4 to T5. > > What is the magical incantation?? > > > > > > > > Thx. > > > > > > > > Ezra E. > > > > > > > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com