Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate and Struts 2

 
John Eric Hamacher
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cameron:

Is there any planned integration between Hibernate and Struts 2?

Thanks.

Eric
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the great things about Hibernate is that it is very much a stand-alone technology that makes data persistence from a Java program very easy. Furthermore, it's extremely easy to integrate Hibernate into a Struts of JSF or GWT application.

As far as integration goes, simply adding the appropriate jar files to the lib directory of a web application makes Hibernate available to your struts 2 applications. From that end, you can write all your struts code, be it state management, command objects and controllers, and simply call Hibernate when data persistence is needed. It doesn't get much easier than that!

-Cameron McKenzie
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!