Actually you went off Struts' scope by using AJAX.because javascript is on the client side. by using XHR you have put the control of determining the result to javascript and not Struts. one other way you can do it is you can let server send the url along with other information to client and client decide based on the result to redirect or stay on the same page. but still the job of determining the result is on your javascript
- how to use struts 2 to redirect jQuery Ajax request fireapple
- Re: how to use struts 2 to redirect jQuery Ajax request Steven Yang
- Re: how to use struts 2 to redirect jQuery Ajax request dusty