Is using ActionForm in Business Tier or Integration Tier good Practice?
Joined: Jan 28, 2009
As per our project architecture, We have Presentation, Business and Integration layers. In presentation layer we are using struts 1.2 and in business layer we are using pure java class which is injected into Action class using Spring DI likewise Integration tier classes are injected into Business Layer.
Here my question is, Using ActionForm object in Business Tier and Integration Tier is Good Practice? If not what is the best way to have detail of form objects in Business and Integration layers.
If you look at Struts 2 you'll notice it uses plain beans rather than framework-specific classes like ActionForm. This is a huge improvement because one spends less time writing code for the framework and can concentrate on solving business problems.