读书人

通用的枚举门类

发布时间: 2013-10-10 14:14:51 作者: rapoo

通用的枚举类型

写一个接口

<spring:evalexpression="T(com.overallsituation.SexType).getLabelMap()"var="sexType"></spring:eval><select name="sexType" 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>

读书人网 >Web前端

热点推荐