Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Separation of concerns: the lower levels are not dependent on Struts, and can be re-used.
This tiny ad is guaranteed to be gluten free.
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic