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/
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
--- 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.
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
4 matches
Mail list logo