This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 8718
    
    6

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
Classcast exception
Call action class from timertask's run method
Hibernate
Struts 2 and JDBC
Struts - Hibernate integration