Re: [S2]question about S2+YUI+JSON.

2008-01-22 Thread Tony Zhang
Thanks, I have a question about how to encode the data when sumbit data by YUI. Like below, var postData = "username=anonymous&userid=0"; function makeRequest(){ var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData); } How can I encode the postData? --

[S2]question about S2+YUI+JSON.

2008-01-22 Thread Tony Zhang
I want to write a demo using S2+YUI+JSON. And I got an issue about async call struts2 action. In my jsp file, there is call struts action. I want to submit same data to sever and the server return the json result. But I fount the json plugin can't populate the parameter form request to action.

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-17 Thread Tony Zhang
Thanks you again for reply my question. I got another question, For YUI + struts2, do you prefer to use YUI plugin for struts2 or just use YUI directly? Do we need to use DWR to transfter data? Ted, I looked through your sample struts-pim.war. In that sample, you don't use YUI plugin for strut