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.

Reply via email to