Results 1 to 2 of 2
- 07-02-2010, 08:07 PM #1
Member
- Join Date
- Jun 2008
- Posts
- 85
- Rep Power
- 0
Trying to display the length of the array using tags
Hi all,
I am looping through an array and here is my code
The problem is the output i getJava Code:<TD ALIGN="center"><c:forEach var="rowcount" items="${data}" varStatus="status"> <B> Count ${status.count} </B></c:forEach></TD>
It loops through the array and prints each time. What I want is to display the total count aloneJava Code:Count 1 Count 2 Count 3
How do I go about doing this?Java Code:Count 3
Last edited by Ms.Ranjan; 07-02-2010 at 11:03 PM. Reason: Just make my question clear
- 07-03-2010, 12:15 AM #2
Member
- Join Date
- Jun 2008
- Posts
- 85
- Rep Power
- 0
Similar Threads
-
Array without using Array.length
By ranjanarr in forum New To JavaReplies: 3Last Post: 05-23-2010, 09:18 AM -
java Array.length property
By X-ion in forum New To JavaReplies: 0Last Post: 04-07-2010, 08:45 AM -
Array length and printing out uninitialized array.
By nicolek808 in forum New To JavaReplies: 4Last Post: 09-10-2009, 09:12 AM -
Using reflection to check array type and length
By Java Tip in forum java.langReplies: 0Last Post: 04-23-2008, 08:15 PM -
Using reflection to check array type and length
By Java Tip in forum java.langReplies: 0Last Post: 04-14-2008, 08:42 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks