Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts and hibernate combination

 
ashwin bala
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
From the books and forums that combining struts and hibernate inside one class is violating the design patterns and it is a bad practice.
But, i am using struts for my presentation layer that is for JSP and bean classes.I have my hibernate code ready for database transaction.
where will i call my hibernate class for sending data into database ? thanks in advance.
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the Struts documentation: How to Access a Database
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic