File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes struts DAO layer and DTO objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "struts DAO layer and DTO objects" Watch "struts DAO layer and DTO objects" New topic

struts DAO layer and DTO objects

manoj samarasinghe

Joined: Nov 17, 2004
Posts: 16
For my STRUTS PROJECT....I have to connect to a database using DAOs.
I used two layerse called DAO (data access objects) and "service" layer where business logic is reside.i used DTO (datatarnsfer objects) for transfer data from frountend to backend.

later i add another layer between frount and service layer called delegate layer to redue coupling.

Actions-->delegate--> service-->DAO

my problom is what kind of methods i have to use in these layerse.
do i have to use more specific methods at delegate layer, and fewer and 'more general' ones at the DAO or othr way round?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Moving to the ORM forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: struts DAO layer and DTO objects
It's not a secret anymore!