Re: [S2] Autocompleter and JSON list

2007-04-26 Thread Musachy Barroso
Yes, you might want to use the JSON plugin: http://cwiki.apache.org/S2PLUGINS/json-plugin.html musachy On 4/26/07, wolverine my <[EMAIL PROTECTED]> wrote: In my action class, what is the way to format my the values into JSON string? Do I need to construct the string in JSON format? On 4/26/

Re: [S2] Autocompleter and JSON list

2007-04-26 Thread wolverine my
In my action class, what is the way to format my the values into JSON string? Do I need to construct the string in JSON format? On 4/26/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- wolverine my <[EMAIL PROTECTED]> wrote: > Now, to return the list dynamically (e.g. read from > the database), I

Re: [S2] Autocompleter and JSON list

2007-04-26 Thread Dave Newton
--- wolverine my <[EMAIL PROTECTED]> wrote: > Now, to return the list dynamically (e.g. read from > the database), I will have to retrieve the values > from the database, Yeah. > [...] store it in the session You don't need to store it in session. d.

[S2] Autocompleter and JSON list

2007-04-25 Thread wolverine my
Hi! Based on Struts showcase, I have tried the below AJAX tags: and the JSONList action simply return the hardcoded contents of /ajax/JSONList.js: [ ["Alabama","AL"], ["Alaska","AK"], ... ["Wyoming","WY"] ] Now, to return the list dynamically (e.g. read from the database