Two Laptop Bag*
The moose likes JSP and the fly likes How to use JSTL and EL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to use JSTL and EL" Watch "How to use JSTL and EL" New topic
Author

How to use JSTL and EL

Mani Rai
Greenhorn

Joined: Dec 26, 2012
Posts: 4
I have a list of bean objects, that will be sent in request scope from servlet to jsp page as shown below:



How to retrieve this request and print its properties using jstl?
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1016
You would get a hold of the list via ${requestScope.adminList} or possibly even just ${adminList}

A <c:forEach> tag would loop over all the items in the list, allowing you to print the properties.

Mani Rai
Greenhorn

Joined: Dec 26, 2012
Posts: 4
Thanks stefan, for the quick respose.. i ll give it a try..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to use JSTL and EL
 
Similar Threads
Passing a list of beans from a servlet to jsp page to display in html table
forEach tag
Storing resultset into arraylist
JSP Combobox and Java Class
Populating a HTML select with a servlet - how is it done?