File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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: 61413
    
  67

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