Write an interface [java] public interface DisplayEnum {public String getDisplay ();} then write the enumeration [java]/*** Gender */public enum SexType implements DisplayEnum {MEN ("M"), FELMEN ("F"); private String value; private SexType (String value) {this. value = value;} public String getValue () {return this. value;} private static Map <String, String> labelMap = new LinkedHashMap <String, String> (); static {SexType. labelMap. pu T (SexType. MEN. getValue (), "male"); SexType. labelMap. put (SexType. FELMEN. getValue (), "");} public static Map <String, String> getLabelMap () {return SexType. labelMap;} @ Override public String getDisplay () {return SexType. labelMap. get (this. getValue ();} the spring label is used in jsp to introduce the enumeration type [java] <spring: eval expression = "T (com. overallsituation. sexType ). getLabelMap () "var =" sexType "> </spring: eval> <select name =" sexT Ype "class =" select "reg =" \ S "> <c: forEach var = "map" items = "$ {sexType}"> <option value = "$ {map. key} "$ {command. sexType = map. key? 'Selected': ''}>$ {map. value} </option> </c: forEach> </select>