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
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
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
3 matches
Mail list logo