This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Choosing ActionForm at run time?

andrew low
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use an action to accept the details for a CandidateBean - this bean wants to be abstract, and I want to have some sort of control that allows me to receive a bean of a child type of the candidate bean instead.

What are my first couple of steps - I'm confused as to how I might do this - should I point the form off to different actions depending on the bean type to be supplied (thus triplicating the effort) or is there an nice way to do this.

Sorry if this is a vaguely phrased problem.


I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic