This week's book giveaway is in the Game Development forum.
We're giving away four copies of Badass: Making Users Awesome and have Kathy Sierra on-line!
See this thread for details.
The moose likes Struts and the fly likes Form Bean design question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Form Bean design question" Watch "Form Bean design question" New topic

Form Bean design question

Raj Chukka

Joined: Apr 09, 2007
Posts: 22

Can a form bean extend another form bean and get all the properties from the parent one?

Can someone tell me (or) guide me to a resource link for this?

Raj Chukka
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Yes, a form bean can extend another form bean. I do this on occasion. The validator framework does not know about inheritance, so you have to duplicate validation for each base class.

- Brent
I agree. Here's the link:
subject: Form Bean design question