A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Web Component Certification (SCWCD/OCPJWCD)
ArrayList in jsp:useBean..
Joined: Oct 05, 2004
Nov 12, 2004 01:53:00
I have the following code.
:useBean id="names" class="java.util.ArrayList"/>
How can I populate the arraylist using jsp:setProperty , or any other way without using scripting.
Joined: Jun 20, 2003
Nov 12, 2004 09:57:00
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.
SCBCD, SCWCD, SCJP
I agree. Here's the link:
subject: ArrayList in jsp:useBean..
how to pass arraylist from jsp to java bean
Is Vector an obsolete collection class?
How to use for loop inside of dropdownlist at jsp?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014