Re: sj:a json return result question

2013-08-06 Thread john lee
Dave,   Thanks your very much, it works very well   brw, the book you wrote/published, i had it.   john     From: Dave Newton To: Struts Users Mailing List ; john lee Sent: Tuesday, August 6, 2013 11:26 AM Subject: Re: sj:a json return result question

Re: sj:a json return result question

2013-08-06 Thread Dave Newton
Configure your result's `root` to be `sum`, otherwise it will serialize the entire action. On Tue, Aug 6, 2013 at 10:31 AM, john lee wrote: > > Question for Sjquery's sj:a tag as the following > > > href="%{ajax}" > targets="result" >

sj:a json return result question

2013-08-06 Thread john lee
  Question for Sjquery's   sj:a  tag as the following       TOTAL # PARTS        public class ReportkeyAction extends extends ActionSupport {   private int sum;   public int getSum() { return sum; }   public void setSum(int sum) { this.sum = sum; }   public String execute() throws