All entries for Wednesday 25 October 2006

October 25, 2006

JSTL Loop

<c:forEach begin="0" end="${numbers}"   var="status">
 ${status}
<c:if test="${status %2 == 0}">hi</c:if>
</c:forEach>

The value of varStatus represents the name of a scoped variable that you can use to obstain information about the status of the iteration performed by action.

The following code

<c:forEach begin="0" end="${pageNumbers}"   var="i" varStatus="status">
var: ${i} and status: ${status.count} <br/>
</c:forEach>

generates the following output:

var: 0 and status: 1
var: 1 and status: 2
var: 2 and status: 3
var: 3 and status: 4 
<c:if test='$( param.cardType =="Visa"}'></c:if>
<c:if test='$( not empty param.cardType}'></c:if>
<c:if test='$( isRight}'></c:if>
<c:choose>
 <c:when test='${isRight}'>
  </c:when>
 <c:otherwise>
 </c:otherwise>
</c:choose>

Search this blog

Search Warwick Blogs

 

Tags

Most recent comments

  • Oracle 11g is the clear leader in this area. Oracle has invested heavily into self–tuning capabiliti… by shaane on this entry
  • All the features are very nice.I like Repair Advisors the most.Oracle 10G introduced some of the dat… by lucy on this entry
  • "logical standby failed to re–start, I am also getting the same error. I have search on internet and… by anemia on this entry
  • Thanks for the nice information because from last three days i am stuck on this problem…. by robot vacuum on this entry
  • So what happen City speed dating when you tried this coding once in your PC.. Please tell me so i am… by John Bergeron on this entry
Not signed in
Sign in

Powered by BlogBuilder
© MMXXII