This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Wants to use loop in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Wants to use loop in jsp" Watch "Wants to use loop in jsp" New topic
Author

Wants to use loop in jsp

Bindu Kasera
Greenhorn

Joined: Aug 03, 2012
Posts: 1
How can i use for loop in jsp
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

Use the <c:forEach> JSTL tag.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Abdul Aatif
Greenhorn

Joined: Feb 08, 2012
Posts: 23
Bindu Kasera wrote:How can i use for loop in jsp



<c:forEach var="i" begin="1" end="10">
hello <br>
</c:forEach>

is equal to:

for(int i=1;i<=10;i++){
System.out.println("hello ");
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wants to use loop in jsp
 
Similar Threads
Acess list elements on foreach JSTL tag
How do you add objects to arrays?
for loop within a while?
Synchronization
Adding arrays?