aspose file tools*
The moose likes Struts and the fly likes Web Application with Struts (Design) 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 "Web Application with Struts (Design)" Watch "Web Application with Struts (Design)" New topic
Author

Web Application with Struts (Design)

Terry McKee
Ranch Hand

Joined: Sep 29, 2000
Posts: 173
I am developing a new J2EE web application using struts. It is a fairly simple website, but I expect that the site will expand often. One of the issues that I am dealing with when designing the new environment is making sure that the overall architecture is effective. I have been reading Pro Jakarta Struts by John Carnell which provides many good ideas about how to proceed, but I am still unclear about a few things.

The major obstacle that I am trying to figure out is what Value Objects (or Data Transfer Objects to create. Is it common to have a one-to-one relationship between your VO/DTO classes and your database tables? For instance, the database has a users table, courses table and groups table. Would it be appropriate to have a UserDTO, CourseDTO and GroupDTO? Should I be considering other areas of the application other than the database when constructing the VO/DTO's?

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Web Application with Struts (Design)
 
Similar Threads
Design question
passing object from jsp to action
Tracking User's requests.
How to expose data from ResultSet to business layer
Struts and how to use MVC for it