jqGrid using a servlet to store the data, how to access the data from a different java class

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-04-19T08:26:30Z Indexed on 2010/04/19 14:33 UTC
Read the original article Hit count: 1046

Filed under:
|
|
|

I'm using jqGrid for a table input and setting up the url as a servlet which will deal with the GET and POST requests and save the rows to a Java object.

I'm using webwork web framework and I was wondering how I can get access to the object that the servlet is saving the data to.

One way I have thought of is to just call the GET method from the Java action class which the servlet will return a JSON string with the object data.

Is there a better design for doing this?

This is probably not too clear so ask questions so I can help get across my point.

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about JavaScript