IF I have an ActionFrom that looks like
 

public class WorkAuthForm extends ActionForm
{
     private ArrayList engineers;
    
    public ArrayList getEngineers()
    {
        return this.engineers;
    }
    
    public void setEngineers(ArrayList engineers)
    {
        this.engineers = engineers;
    }
 
    ......
}
 

And engineers are:

public class Engineer
{
    
    private String id;
    
    private String name;
    
    /** Creates a new instance of Engineer */
    public Engineer()
    {
    }
    
    public void setId(String id)
    {
        this.id = id;
    }
    
    public String getId()
    {
        return id;
    }
    
    public void setName(String name)
    {
        this.name = name;
    }
    
    public String getName()
    {
        return name;
    }
}
 

why can"t I do the following:
 

<html:select property="id" value="name" >
       <html:options collection="workAuthForm.engineers"
labelProperty="name" property="id"/>
</html:select> 
 

Thanks
Dan

Reply via email to