struts-user mailing list archives

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

Hello,

     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>
   </result>
</action> 



      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/

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


Mime
View raw message