hiii aarti would you explain how to use jquery , json with java & jsp in struts 1.2 ? Please clarrify your code and what is the use url an how to automaically create jquery grid in jsp.
aarati said: Hello, I get an empty grid when trying to obtain a json object from struts action method. Making use of the following
aarati said:
Hello,
I get an empty grid when trying to obtain a json object from struts action method.
Making use of the following
kirangentlebreeze1987 said: aarati said: Hello, Finally got it to work . Made slight modifications to the existing code: Struts Action: 1) Earlier was returning to an empty jsp page with no specific code. Now returning null. 2) Using the write method of the jsonObj to write the response data. The action method now looks like the following: public ActionForward getJSONData(ActionMapping mapping, ActionForm form,
kirangentlebreeze1987 said:
aarati said: Hello, Finally got it to work . Made slight modifications to the existing code: Struts Action: 1) Earlier was returning to an empty jsp page with no specific code. Now returning null. 2) Using the write method of the jsonObj to write the response data. The action method now looks like the following: public ActionForward getJSONData(ActionMapping mapping, ActionForm form,
Finally got it to work .
Made slight modifications to the existing code:
Struts Action:
1) Earlier was returning to an empty jsp page with no specific code. Now returning null.
2) Using the write method of the jsonObj to write the response data.
The action method now looks like the following:
public ActionForward getJSONData(ActionMapping mapping, ActionForm form,
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS