JSP 1.2 tag library for Hibernate 2.1
Managing the session factory
The taglibs uses JNDI to find the SessionFactory. By default, it will lookup at
Normally I create the Hibernate Configuration and this automatically binds the Session Factory to JNDI in the correct place. However, Tomcat's JNDI is read-only, so this Hibernate docs page might help: Using Hibernate with Tomcat and JNDI. It is also useful for anyone having trouble setting up Hibernate using JNDI.
If you have configured Hibernate to bind the session factory at a different location, you can set a different default for the tags in web.xml. Set a servlet context init parameter named
All tags that require a session (most tags) take an optional sessionFactory attribute that allows you to specify an alternate JNDI location. If instead you want to use a session factory bound at
If you use a tag outside of a