Re: Simple dropdown box population

2008-02-13 Thread Al Sutton
uot;Struts Users Mailing List" Sent: Thursday, February 14, 2008 4:59 AM Subject: Re: Simple dropdown box population Suppose you declare list of companies as: private List companies = new ArrayList(); Now you got to have getter for this property as: public List getCompanies(){ return compani

Re: Simple dropdown box population

2008-02-13 Thread Prashant Khanal
Suppose you declare list of companies as: private List companies = new ArrayList(); Now you got to have getter for this property as: public List getCompanies(){ return companies; } You can prepopulate your companies list implementing Preparable interface in your action. Upon implementing you

RE: Simple dropdown box population

2008-02-13 Thread Jack Haynes
Hi, I have a list of objects in my action. Each object in the list represents a Company. I want to populate my dropdown box, in my jsp, with company names. When a companyName is selected in the dropdown box, the companyID (which corresponds to the companyName) will be sent upon form subm