wood burning stoves 2.0*
The moose likes JSF and the fly likes Iterating over Arraylist in jsf application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Iterating over Arraylist in jsf application" Watch "Iterating over Arraylist in jsf application" New topic
Author

Iterating over Arraylist in jsf application

Ramkumar Subburaj
Ranch Hand

Joined: Sep 07, 2007
Posts: 83
Hello,

I wanted to display a list of products in a JSF enabled JSP page. When the user clicks the link to reach the page, the request goes to a managed bean where i'm getting the data from the database and storing it in an array list.

Now how to display these values in the JSP page (how to iterate over the array list).


SCJP 1.5, SCWCD 1.4.
Hanging between Web Services and EJB
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

Use <h:datatable>


My Blog SCJP 5 SCWCD 5
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Iterating over Arraylist in jsf application