The property is "networkTypes" and it is a Vector.

Wayne
[EMAIL PROTECTED]



-----Original Message-----
From: Rob Leland [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 2:45 PM
To: [EMAIL PROTECTED]
Subject: Re: dropdown values gone after validation error


"Young, Wayne" wrote:
> 
> I have the following struts/JSP fragment that creates a dropdown with
values
> from the networkTypes attribute.
> 
> <html:select styleClass="Field" property="networkType" size="1">
>   <html:options property="networkTypes"/>
> </html:select></td>
> 
> The networkTypes attribute is created in the "getNetworkTypes" action that

Is getNetworkTypes an Iterator, Vector, ArrayList.

I have noticed that for java.util.Enumerate, and 
java.util.Iterator you can go through the
list only once if you obtained a --reference-- to the list.

I have started to copy the objects to an array,
see the RegistrationForm.java and look at subscriptions
in the example program, on how to do this.

-Rob

Reply via email to