This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
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


Win a copy of The Software Craftsman this week in the Agile forum!
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: 5
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: 1272
    
    6
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: 5
Thanks stefan, for the quick respose.. i ll give it a try..
 
wood burning stoves
 
subject: How to use JSTL and EL