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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Different forms with different beans" Watch "Different forms with different beans" New topic

Different forms with different beans

andrew low

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?


I agree. Here's the link:
subject: Different forms with different beans
It's not a secret anymore!