Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Different forms with different beans

 
andrew low
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic