Re: how to use struts 2 to redirect jQuery Ajax request

2009-05-19 Thread dusty
There is no reason why Struts can't figure out the URL and give it back. I have not seen the JSON result used the way you have it configured. Typically, you see the JSON result with a root parameter. The root is the action property you want to be the root of your JSON object graph. So what I w

Re: how to use struts 2 to redirect jQuery Ajax request

2009-05-19 Thread fireapple
So there is no way to put the control of determining the result to Struts instead of Javascript? Steven Yang wrote: > > 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 a

Re: how to use struts 2 to redirect jQuery Ajax request

2009-05-18 Thread Steven Yang
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