Hello Reseindia,
I ve a question. I have a JSON string ready to send to an Struts2 action from a ajax javascript function. Action is called properly, but i dont know how to get the JSON parameter from its method.
Is any struts.xml action configuration that makes me able to put automatically the information in the object, just as <result>..<param name="attributeClass">attributeClass</para>.
In a similar way that i send from the server to the jqGrid (a javascript object to make grids with data inside)?
Or maybe the onlye way is forget the struts.xml configuration and "hard programming" HttpServletRequest parameter?
Thank you!
JSON from client to serverJosé December 15, 2011 at 5:22 AM
Hello Reseindia, I ve a question. I have a JSON string ready to send to an Struts2 action from a ajax javascript function. Action is called properly, but i dont know how to get the JSON parameter from its method. Is any struts.xml action configuration that makes me able to put automatically the information in the object, just as <result>..<param name="attributeClass">attributeClass</para>. In a similar way that i send from the server to the jqGrid (a javascript object to make grids with data inside)? Or maybe the onlye way is forget the struts.xml configuration and "hard programming" HttpServletRequest parameter? Thank you!
(*):(*) April 12, 2012 at 8:44 PM
Please enter a valid email address.
Post your Comment