struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From holod <>
Subject Re: <s:a dojo-anchor, parse result, output it and then execute JS
Date Mon, 28 Jul 2008 12:05:47 GMT

Thanks! I've read manual you gave me and I've decided to use 


I've excluded one property, the final result looks like:
{"resultOfAction":"Error appeared.Please call support service."}

I don't know how to put away "key" (resultOfAction), { and }, also I don't
need quotes and :.

And the second question:
How is it possible to execute my own JS script  right after <s:a/>

newton.dave wrote:
> --- On Mon, 7/28/08, holod <> wrote:
>> I want to do this thing:
>> 1.catch result, parse it and get value of only one public
>> get*() method.
>> 2.write it (targets attribute is specified). Seems like I
>> just need to
>> override data accept functionality
>> 3.Execute JS script. This script will blur
>> targets"" and then delete them.
>> Please, tell me, how can parse data from action and then
>> execute script?
> Why not just use the "includeProperties" param? Or specify a root object?
> The result comes back in JSON: that's a JavaScript question, not Struts. 
> Dave
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message