Under package I have it extend struts-default and json-default. I do this because I need both i believe.
The examples I saw online were simplified ones where they didnt have the result mapped to a certain page.
I find this very confusing, because if your json data has to be read from a certain jsp page (like my "success" result type), then how will struts know which page to load after
the action complets/json serialized?
David Pew wrote:how can i tell if the json plugin is creating the json data?
I'm actually serious about that; I not going to spend much time trying to read unformatted code or config.
David Newton wrote:Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.
David Pew wrote:Also, when the json data is returned in the post, it should be in the response where this error message is, am I correct?
As far as I can tell, this result type="json" should cause the json plugin to, for this action class, find any paramter with the name gridModel, and json-ize it.