Re: Servlet redirect
Thomas Vandahl <[email protected]> Tue, 31 Jul 2012 18:51:02 +0200
| Newsgroups | gmane.comp.jakarta.turbine.user |
|---|---|
| Message-ID | <[email protected]> |
On 31.07.12 08:37, SzĹącs Attila wrote:
> RunData's setRedirectURI will not work, nor will the servlet redirect (or forward). I have tested both. They do not work because I have an ajax call and ajax response always goes back to the response initiator, which in my case is the jqGrid with which I construct my tables. So I will have to do a javascript redirect.
The "Location" header is normally honored even by Ajax calls. Simply
call data.getResponse().setHeader("Location", arbitraryLocalRedirectURL);
Bye, Thomas.