aspose file tools*
The moose likes Struts and the fly likes Struts 1.2 :Sending data to DAO Layer  from Action class through ActionForm or DTO Object ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.2 :Sending data to DAO Layer  from Action class through ActionForm or DTO Object ??" Watch "Struts 1.2 :Sending data to DAO Layer  from Action class through ActionForm or DTO Object ??" New topic
Author

Struts 1.2 :Sending data to DAO Layer from Action class through ActionForm or DTO Object ??

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

I have seen a Application , which used Struts 1.2 Framework for building User Interface .
When a Request is made from a Jsp Page , Inside the Action class , data is extracted from the FormBean and creates a new DTO and this DTO is actually passed to the DAO Layer for DataBase insertion .

Can you please tell me what is the advanatage we get in this rather than directly submitting the FormBean to the DAO Layer .

Please share your ideas .

Thanks in advance.


Save India From Corruption - Anna Hazare.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Separation of concerns: the lower levels are not dependent on Struts, and can be re-used.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 1.2 :Sending data to DAO Layer from Action class through ActionForm or DTO Object ??
 
Similar Threads
Implementing Patterns
Difference between DAO,DTO,ACTION FORM, ENTITY CLASSES, SERVICES,FORM, MODEL CLASSES
how to transfer the data from the form bean to the DTO in struts
Struts and App Design question
DAO & DTO Difference?