David Newton wrote:I don't see how this is Struts-specific.
I don't think it is.
André Asantos wrote:Do I need to you set and get for acess id attribute?
You won't, if the Account and the Manager classes are both in the same package, because "String name" and "int id" have default access modifier. So you can access "id" directly.
If your Account class contains only name and id, then you can make these as "private" and then have get and set methods for them.