You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by e gg <eg...@yahoo.com> on 2003/03/17 14:15:45 UTC

Html:Options usage

Hi, I have a bean class that returns an ArrayList of ArrayLists for my dropdowns. I am really confused on how to show this dropdowns. Here's my bean class:

public class UserAccessBean implements java.io.Serializable {
 

List deptList  = new ArrayList();
List brokerList = new ArrayList();
List filters = new ArrayList();


 public List getFilters() {
         deptList.add(new LabelValueBean("1", "Department1"));
         deptList.add(new LabelValueBean("2", "Department2"));
         deptList.add(new LabelValueBean("3", "Department3"));
    
        
         brokerList.add(new LabelValueBean("broker1", "BrokerDepartment1"));
         brokerList.add(new LabelValueBean("broker2", "BrokerDepartment2"));
         brokerList.add(new LabelValueBean("broker3", "BrokerDepartment3"));
 
  filters.add(deptList);
  filters.add(brokerList);
  return filters;
 }


}

The 'filters' ArrayList can actually return 2 or more ArrayList. Like if there's 3 ArrayLists, I would like an html output such as:

<select name=filter1><options....</select>

<select name=filter2><options ... </select>

<select name=filter3><options...</select>

tia,

Emmanuel

  



---------------------------------
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online