File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes struts and hibernate combination Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts and hibernate combination" Watch "struts and hibernate combination" New topic

struts and hibernate combination

ashwin bala
Ranch Hand

Joined: Dec 07, 2009
Posts: 41
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

Joined: Oct 29, 2001
Posts: 9168

From the Struts documentation: How to Access a Database

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: struts and hibernate combination
It's not a secret anymore!