• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Web Application with Struts (Design)

 
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Have you no shame? Have you no decency? Have you no tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic