jstl+el 获取枚举元素
来源:互联网 发布:网络延迟测试在线 编辑:程序博客网 时间:2024/06/02 01:13
新手笔记:
//枚举
text, number, alphaint, select, checkbox, date
}
// 获取所有商品属性类型
public List<AttributeType> getAllAttributeType() {
List<AttributeType> allAttributeType = new ArrayList<AttributeType>();
for (AttributeType attributeType : AttributeType.values()) {
allAttributeType.add(attributeType);
}
return allAttributeType;
}
在jsp页面上使用jstl
<select id="productAttributeType" name="productAttribute.attributeType" >
<option value="">请选择...</option>
<c:forEach items="${allAttributeType}" var="list">
<option value="list">
${list}
</option>
</c:forEach>
</select>
- jstl+el 获取枚举元素
- EL表达式 JSTL标签获取数据
- JSTL, EL 获取数据和遍历
- jstl+el
- el+JSTL
- el,jstl
- EL&JSTL
- el+jstl
- EL、JSTL
- jstl el <%%>
- EL JSTL
- jstl el
- El、JSTL
- el jstl
- EL&JSTL
- EL,JSTL
- EL,JSTL
- EL、JSTL
- 穿透全透明
- ubuntu shell 命令一点一点学
- ALE and EDI
- Screen 设计
- APP性能终极优化之如何提高终端适配率
- jstl+el 获取枚举元素
- IOS学习-----课程体系-----坚持就是胜利
- C++ 简单读写文本文件、统计文件的行数、读取文件数据到数组
- 初级X编程
- 一语惊醒梦中人
- 微博营销与网络营销有什么不同
- JSP实现网页,分页功能
- CheckBox复选框全选以及获取值(转)
- powerDesigner连接oracle