I have this error:

'No getter method for property personalInfo.name of bean person'

help anyone?

i have my PersonalInfo class and it has a get and set method for name.
public void setName(String name){ this.name =  name; }
public String getName(){ return name; }
----- 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]

Reply via email to