ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • JSTL
    프로그래밍 언어/제어 구조 2012. 7. 25. 10:33

    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


    <c:forEach var="x" begin="0" end="10" step="2">

      ..<c:out value="${x}"/>..

    </c:forEach>


    <c:forEach items="${entryList}" var="blogEntry" varStatus="status">

    <c:if test="${status.first}">..</c:if>

        ..<c:out value="${status.count}"/>..<c:out value="${blogEntry.title}" escapeXml="false"/>..

    </c:forEach>


    <c:set value=".." var="msg"/>

    ..${msg}..

    <c:if test="${msg == '..'}" var="result">

    ..

    </c:if>

    ..${result }..


    <c:choose>

      <c:when test="${pageContext.request.scheme eq 'http'}">

        ..

      </c:when>

      ..

      <c:otherwise>

        ..

      </c:otherwise>

    </c:choose>



    참조 사이트:

    http://jjjryu.tistory.com/entry/JSP-Expression-Language-EL


Designed by Tistory.