There is a property called ignorehierarchy which takes care of that.
------Mensaje original------
De: Daniel Ruan
Para: Struts Users Mailing List
Responder a: Struts Users Mailing List
Asunto: JSON Plugin to Include Parent Action's Properties
Enviado: 3 Nov, 2011 11:56

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



Sent via BlackBerry from T-Mobile

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

Reply via email to