This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android 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

Wants to use loop in jsp

Bindu Kasera

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

Joined: Jan 10, 2002
Posts: 63039

Use the <c:forEach> JSTL tag.

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

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>

is equal to:

for(int i=1;i<=10;i++){
System.out.println("hello ");
wood burning stoves
subject: Wants to use loop in jsp
It's not a secret anymore!