<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]

Reply via email to