Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

varstatus foreach jsp

/*Using varStatus attribute which holds loop status, we can perform
loop operations like checking whether the current iteration is the last 
iteration etc.*/
//Example
<c:forEach items="${schools}" var="school"  varStatus="status">
    School from index 4 until index 8: ${school}
    ${not status.last ? ‘<hr/>’ : ‘<br/>’}
</c:forEach>
<div class="open_grepper_editor" title="Edit & Save To Grepper">
</div>
/*In the above example we are displaying school names with horizontal line for 
each school name. We avoided horizontal line for the last school name instead 
we had given a line break for the last item.*/
Comment

PREVIOUS NEXT
Code Example
Java :: Execute method on load alternative 
Java :: efficient java code to reverse array elements 
Java :: signo zodiaco jaa 
Java :: get sha1 key from keystore 
Java :: Marging ViewPager 
Java :: coin flip random java 
Java :: REGEX ___ get length of array in java 
Java :: list in list 
Java :: java get first not null element 
Java :: countdown timer with seekbar 
Java :: Java Default Access Modifier package one 
Java :: javacal 
Java :: hgjhghj 
Java :: transform primitive float array to float array 
Java :: Java schleifen 
Java :: leap year java method 
Java :: sort colors 
Java :: computeifabsent hashmap java 
Java :: java code to create square using 2D array 
Java :: setting a hint on a text field in javafx 
Java :: mei mei bad 
Java :: hybrid inheritance in java 
Java :: java no enum constant 
Java :: java how to sort custom objects in descending orde 
Java :: last block incomplete in decryption 
Java :: Hibernate/JPA criteria query 
Java :: print out list of letters a to z java 
Java :: do you have to implement all methods of an interface java 
Java :: comvertir a java 
Java :: make pattern for V in jaca 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =