• Post Reply Bookmark Topic Watch Topic
  • New Topic

4th layer

 
Roger Gazdzicki
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand the concept of struts and the MVC. I am trying to incorporate a fourth layer which will interact with the database only. So my controller would talk to this 'data layer' which would talk to the database. The only thing I am unsure about is where would the interaction between these 2 layers take place? The action form or the action class? Any theories.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say the layer should be between action class and database.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roger G,
Please take a look at the JavaRanch Naming Policy and change your display name to match it.
Thanks!
bear
JSP Fourm Bartender
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35729
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The three layers of MVC are all for the front end. You can add separate layers to connect the model to the back-end. For example if using EJBs, many people use a session facade as a layer on top of the entity beans or JDBC.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!