here's part of the code: ..... Person person = new Person(); PersonalInfo personalInfo = new PersonalInfo(); if ( taskId != null ) { System.err.println("<--- Writing personc class : " + taskId); personalInfo.setName("Richard"); person.personalInfo = personalInfo; request.setAttribute("person", person); } ...
-richard >>>>>> I have this error: 'No getter method for property personalInfo.name of bean person' help anyone? ----- Original Message ----- From: "Nicolas De Loof" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, February 19, 2003 4:01 PM Subject: Re: Displaying > > <bean:write name="person" property="personinfo.lastName"/> > > this assumes you have getter and setters in your beans > > see more in > http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/taglib/bean > /package-summary.html#package_description > > Nico. > > > > > how to i display my bean using the tags included in struts if my bean is > like this: > <code> > public class Person{ > PersonInfoBase personinfo; > ContactInfoBase contactinfo; > .... > } > > public class PersonInfoBase{ > getLastName(); > getBirthdate(); > .... > } > > public class ContactInfoBase{ > getAddress(); > getZip(); > .... > } > </code> > > How do i display like address or lastname is i put the class person in the > session.attribute: > > <code> > Person person = new Person(); > request.setAttribute("person",person) > </code> > > Can someshow show me how wil the jsp looks like. > > thanks a lot in advance. > > > --------------------------------------------------------------------- > 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]