aspose file tools*
The moose likes Struts and the fly likes Different forms with different beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Different forms with different beans" Watch "Different forms with different beans" New topic
Author

Different forms with different beans

andrew low
Greenhorn

Joined: Mar 22, 2005
Posts: 18
This is a general question regarding the best way of approaching a problem -

I want to have a form that contains 3 beans - a source, a retrieved bean and a destination bean. The all the beans are variations on a super class Candidate, but represent the different configurations of the data required to add the canidate to a form. So I want to derive a form and and action from the concrete child classes, but I am not really sure if this is wise - can anyone give me some vague pointer - should I create diffent forms and different actionforms / actions to deal with this, or is there a way to deal with the data as a super type?

Cheers

Andrew
 
Don't get me started about those stupid light bulbs.
 
subject: Different forms with different beans