I am trying to return a list of hibernate entities to my AJAX call;
however, I get the following error message when JSONWriter tries to
serialize the objects. Can anyone explain why I am getting this error
and if there is something I can do to avoid it so I can pass my objects
back via a JSON call
Could you post your struts.xml and the action which you're trying to
serialize?
I'm pretty sure that your action class contains a reference to a connection
object and the json plugin is trying to serialize it.
If I'm right you could simply change your root parameter via action
configuration inside
Here is the portion from the struts configuration:
struts-warranty.xml
itemsList
The ajax action class looks like this:
public class WarrantyAssignmentItemAjaxAction extends BaseAction
{
private List itemsList;
public List getItemsList() {
Return itemsList;
}
// othe
3 matches
Mail list logo