Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use JSTL and EL

 
Mani Rai
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1751
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks stefan, for the quick respose.. i ll give it a try..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic