struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Biesbrock, Kevin" <Biesbrock.Ke...@aoins.com>
Subject RE: JSON Property
Date Tue, 04 Jan 2011 15:06:35 GMT
> I don't want to use a separate roundtrip for loading the jqGrid for
two reasons:
> 1. I want to handle the contents of the grid, and additional fields,
in a single transaction.
> 2. It's inefficient and unnecessary.
> Obviously the first is the more important :)


I think you could do something like this in your jsp:

<input type="hidden" name="jgrid-json-data" value="<s:action
name="myJsonAction" namespace="/json"/>"/>

This would allow you to use the already-in-place json result type and
save you a lot of extra work.


-Beez


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message