Merrill
Consultant, Sima Solutions
Merrill
Consultant, Sima Solutions
Merrill
Consultant, Sima Solutions
Merrill
Consultant, Sima Solutions
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 ]
Consider Paul's rocket mass heater. |