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

Reply via email to