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]