Thanks, Wendy:

Sorry, I did not make it clear. I actually got the
collection directly from database using JSP scriptlet.
I just do not know how to correctly display options
this way. 

--- Wendy Smoak <[EMAIL PROTECTED]> wrote:
> Rick wrote:
> > If I have a collection of employees, an employee
> has a
> > name and id (int). How can I iterate through this
> > collection and put every employee between
> > <html:option>?
> 
> Use <html:options> (note the plural, not 'option')
> and feed it the
> collection.  You don't need to do the iteration
> manually.  This has the
> added bonus of Struts pre-selecting the correct
> values based on the form
> bean.
> 
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University, PA, IRM 
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to