I have a form that contains a bean with a nested collection that I'd like to prepopulate but I'm having trouble displaying the correct information.. The output html wiould ideally look like this: <select name = "customers"> <option value="cust1000">Jon Doe</option> <option value="cust2000">Jeff Newworth</option> <option value="cust3000">Amy Madigan</option> </select>
The ActionForm contains the bean with nested beans and the error mesage I get from Tomcat is "Cannot find bean under name customer". My form and bean classes are defined as: public CustomerFormBean extends ActionForm { CustomerBase getCustomerBase() { return customerBase; } private CustomerBase customerBase; } public class CustomerBase { public Object[] getCustomers() { return customers.toArray(); } private ArrayList customers; } public class Customer { public String getName() { return name; } public String getId() { return id; } } My jsp code looks like this: <nested:form action='CustomerAction.do'> <html:select property="selectedCustomer"> <nested:nest property="customerBase"> <nested:options collection="customers" name="customer" property="id"/> </nested:nest> </html:select> </nested:form> Could some one point me toward the right direction in helping me understand what's wrong here? Thanks, Justin