GeeCON Prague 2014*
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


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Form Bean design question" Watch "Form Bean design question" New topic
Author

Form Bean design question

Raj Chukka
Greenhorn

Joined: Apr 09, 2007
Posts: 22
Hi,

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?

Thanks,
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
 
GeeCON Prague 2014
 
subject: Form Bean design question