想彻底学一下jstl和el表达式写一份笔记吧,备忘地
el作用范围{ pageScope ,requestScope,sessionScope,applicationScope}
Map:
Map map=new HashMap();
map.put("key1:","value1");
${map.key1};
StringArray:
String [] stringArray=new String[]{"asdf","fdas"};
request.setAttribut(...);
${stringArray[1]}
<c:out value="${hello}" default="123" escapeXml="true" />// 不解析 false 解析
<c:if test="${v1 > v2}" var="v"></c:if>
${v} 输出true or false
<c:choose>
<c:when test="${v1 <v2}" >
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
在forEach标签中 varstatus 集合数量属性 vs.count 当前多少条 begin 开始 end 结束 step 步长
<fmt:formatDate value="" pattern=""></fmt:formatDate>
<fmt:formatNumber value="" pattern="###,###.##">3位分组 ,保留两位
<fmt:formatNumber value="" pattern="###,###.0000">3位分组,保留4位其他补零
<fmt:formatNumber value="" minIntegerDigits="10"> 3为分组 前面补零
<fmt:formatNumber value="" type="currency">3位分组 ,保留两位 货币符号
<fmt:formatNumber value="" type="percent" max... min...>3位分组 ,保留两位 货币符号 小数位
7110

被折叠的 条评论
为什么被折叠?



