Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ArrayList in jsp:useBean..

 
Sami Sayeed
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have the following code.

<jsp:useBean id="names" class="java.util.ArrayList"/>

How can I populate the arraylist using jsp:setProperty , or any other way without using scripting.

cheers
Sami
 
Shiang Wang
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only way I can think of is custom tag. I thought of using core jstl <c:forEach> and <c:set>, but I haven't figured out how to refer to the item of the list in the loop.

Shiang
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic