struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pratt <thechrispr...@gmail.com>
Subject Re: JSON Property
Date Tue, 04 Jan 2011 15:53:58 GMT
You might also need the executeResult="true" attribute on the <s:action>
tag.
  (*Chris*)

On Tue, Jan 4, 2011 at 7:06 AM, Biesbrock, Kevin
<Biesbrock.Kevin@aoins.com>wrote:

> > 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message