Try this:
s:select
name=frmColour
label=colour
list=colourList
listValue=%{getText('myColor.'+toString())}
/
and in you resources file:
myColor.WHITE=Blanc
myColor.RED=Rouge
myColor.BLACK=Noir
sarat.pediredla wrote:
I have a s:select form element in my JSP
I have a s:select form element in my JSP that gets a list of enums to display
in a drop down box.
The following is my enum
public enum Colour {
WHITE,
RED,
BLACK;
}
The following is the action method that returns a List for my s:select
public List getColourList() {
return
2 matches
Mail list logo