Originally posted by Brent Sterling:
Right...you need to set the values to false in your reset method...if you are using session scope. When using request scope then a brand new instance of your form is created and the value is set to whatever you do in your constructor (or the declaration of the property). The scope is set by the scope attribute on your action mapping. The default scope is session (though that can be changed).
- Brent
Originally posted by Merrill Higginson:
I'm not 100 percent sure, and I don't have time to test it right now, but...
I believe it's as simple as:
Assuming defaultLocations is either a List or Array of Strings, the above will display the first element of the list or array.
If your goal is to format the list so that it can be put in a JavaScript fucntion, another possibility would be to add a getter to your ActionForm with a name something like getFormattedDefaultLocations that would return a string something like this:
Then you could simply use the expression
[ October 16, 2007: Message edited by: Merrill Higginson ]