Add/Edit if necessary http://cwiki.apache.org/confluence/x/3CIB
-----Original Message----- From: Kevin Liu [mailto:[EMAIL PROTECTED] Sent: Monday, January 14, 2008 11:07 PM To: [email protected] Subject: Re: How to write Json response in the AbstractDefaultAjaxBehavior.response(ajaxtarget) Thank you , it works! Igor Vaynberg <[EMAIL PROTECTED]> wrote: getrequestcycle().setrequesttarget(new irequesttarget() { respond(response r) { r.write(...); }}); -igor On Jan 14, 2008 6:43 PM, Kevin Liu wrote: > Hi guys! > could you tell me how to write json response in the > AbstractDefaultAjaxBehavior.response(ajaxtarget) method? > my code : > ... > Response response = getResponse(); > response.write("{totalProperty:100,root:[{id:0,name:'name0',descn:'descn0'},]}"); > ... > but the response is like this: > > {totalProperty:100,root:[{id:0,name:'name0',descn:'descn0'},]} > > > how can I remove the > > > > > > > -Kevin Liu > > --------------------------------- > Never miss a thing. Make Yahoo your homepage. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -Kevin Liu --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
