Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate with JSP

 
Baseet Ahmed
Ranch Hand
Posts: 225
Java Notepad Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to know how to integrate Hibernate with JSP.
Or How do I use Hibernate framework inside JSP.
If possible, give some demo code.

Thank you in advance.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a well written app, JSP and Hibernate would never know the other existed.

Hibernate is an ORM framework which would live in the back end of the application. JSP, a templating language for formatting the out put lives on the front end.

If your app is large enough to warrant an ORM layer, you should be well beyond writing any business or persistence code with JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic