I just started using struts 2 last week, so the answer to my question may be obvious.
I have an opening form with submit that uses an action and executes method to get the data. Then, the only way I could get jQuery to work was to put an action and execute the method that just returns success
and then I go onto my jQuery grid with a 3rd action.
whenever I try to execute my program on a browser, the only problem I have is that the JSON string is returned as a file. So when I call the getJSONResult
action, it gives me a file with the JSON string in it, which I can open or download . .
So I think it’s a configuration problem, but I can’t find it. I would be very glad if somebody could help me, thanks guys!