`
隐形的翅膀
  • 浏览: 487291 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

JSTL学习

    博客分类:
  • JSTL
 
阅读更多
1. <c:out value=${name} default="this attribute not exists"/>

2. <c:set var="name" value="this is a test" scope="session|request|page"

3. <c:if test="${user.count==1}">this is the first time</c:if>


4. forEach
    
     <c:forEach var="user" items="${users}">
         <td>${user.userName}</td><td>${user.password}</td>
     </c:forEach>
     


      迭代MAP对象
     
      <c:forEach var="entry" items="${requestScope.MapBean}">
         <td>${entry.key}</td><td>${entry.value}</td>
     </c:forEach>
     
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics