How could I display the values of enum structure in JSP? I use the Spring MVC to implement my project.
Many thanks!
public enum ProjectStatusEnum {
INITIAL(0,"Initial"),ONGOING(1,"Ongoing"),CLOSED(2,"Closed");
private int value;
private String key;
ProjectStatusEnum(int value , String key){
this.value=value;
this.key = key;
}
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
}