wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts and hibernate combination" Watch "struts and hibernate combination" New topic
Author

struts and hibernate combination

ashwin bala
Ranch Hand

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

Joined: Oct 29, 2001
Posts: 8836
    
    7

From the Struts documentation: How to Access a Database


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts and hibernate combination
 
Similar Threads
Call action class from timertask's run method
Struts - Hibernate integration
Hibernate
Classcast exception
Struts 2 and JDBC