Shouldn't that bean use EmployeeInfoForm not EmployeeForm? It depends on how you configured your ActionForms. How did you configure it?
Regards, David -----Original Message----- From: Apte, Dhanashree (Noblestar) [mailto:[EMAIL PROTECTED] Sent: Monday, November 01, 2004 12:26 PM To: 'Struts Users Mailing List' Subject: Nested Properties in ActionForms Hi All, I need to know the correct way to display nested properties of a form on my jsp using struts. I have an ActionForm of type: public class EmployeeInfoForm extends ActionForm { private Name empName; private Name spouseName; private String getFirstName() { return empName.getFirstName(); } private void setFirstName(String fn) { empName.setFirstName(fn); } } and the class Name has the following structure: public class Name { private String firstName; private String middleName; private String lastName; public String getFirstName() { return firstName; } public void setFirstName(String fn) { firstName = fn; } } On the jsp I have: <bean:write name="employeeForm" property="firstName"/> I get the exception: No getter method for property firstName of bean employeeForm. What is the correct way to accomplish what I am trying to do here? Any help appreciated. Thanks a lot! Dhanashree. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]