Take a look at 
http://struts.apache.org/2.2.3/docs/json-plugin.html#JSONPlugin-BaseClasses

Twitter     :http://www.twitter.com/m_cucchiara
G+          :https://plus.google.com/107903711540963855921
Linkedin    :http://www.linkedin.com/in/mauriziocucchiara

Maurizio Cucchiara



On 3 November 2011 16:56, Daniel Ruan <danielr...@gmail.com> wrote:
> Hey,
>
> How do I include some of a parent action's properties in the JSON result of
> an action? In the following example, I'd like MyAction2's JSON result
> includes name1 and name2 from MyAction1 too.
>
> public abstraction class MyAction1 extends ActionSupport {
>
>    protected String name1;
>    protected String name2;
>
> ....
>
> }
>
> public class MyAction2 extends MyAction1 {
> ...}
>
>
>
> Thanks!
>
> Daniel
>

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

Reply via email to