struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Junhua gao <>
Subject $.getJSON(ur,params,function(data)(){}‏
Date Tue, 31 Mar 2009 10:28:29 GMT


     I am using struts2 and Jquery now.

     And who can please tell me how to access the sorttiervo from the 'data'    $.getJSON('SortTiersAction',params,function(data)(){}


     data.sorttiervo? or other ways?

  public class SortTiersAction extends BaseActionS2 implements ModelDriven {
       SortTierService  sorttierservice = new SortTierService();
       private SortTierVO sorttiervo  = new SortTierVO();

       public void setModel(SortTierVO sorttiervo) {
                 this.sorttiervo = sorttiervo;

         public Object getModel() {
            return this.sorttiervo;

      public String execute() throws DefaultException {

      //do someting here;



in struts.xml file

<action name="SortTierQueryAction" class="com.qic.system.action.SortTiersAction">
   <result type="json">
       <param name="noCache">true</param>


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

View raw message