Hi,
I have an enumeration 'Localization' :
public enum Localization {
AIX("Aix-en-provence"),
ANGERS("Angers") ;
}
And I want to put a form select in a jsp using s:select tag with all
Localization items, like :
<s:select list="Localization enum"/>
But I don't know what to put in the list parameter.
In my Localization enum, I wrote a function to retrieve Localization item
through a sorted map :
public Map<String, String> getListLocalization() {
[...]
}
So that my select will be like : <option value="aix">Aix-en-provence</option>
My question is finally : how to put an enumeration in a s:select tag ?
Thanks,
Matthieu MARC
---
Matthieu MARC
Responsable du Service Informatique du Centre d'Angers
Arts et Métiers ParisTech
Tél : 02 41 20 73 61
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]