Trying to use Spring with Struts and Hibernate. I have a struts project that uses Hibernate, and I am trying to use Spring for resource configuration (and using HibernateTemplate)
if I subclass HibernateDaoSupport and try to get hibernate template and pass it a session object, it throws a null pointer exception.
the only way I have found to get this done is make my own Dao that has a Static Session Factory. otherwise i get a new instance of a DAO, and its SessionFactory is null.
(Spring does init it at startup, but doesn't do every instance).
what am i doing wrong?
any hints?
thanks,
-F
-
Spring Struts and Hibernate (2 messages)
- Posted by: Fred Baggins
- Posted on: November 16 2003 10:53 EST
Threaded Messages (2)
- Struts Hibernate and Spring Tutorial by Deepak Kumar on November 19 2006 07:30 EST
- Re: Struts Hibernate and Spring Tutorial by Asif Iqbal on November 21 2006 03:35 EST
-
Struts Hibernate and Spring Tutorial[ Go to top ]
- Posted by: Deepak Kumar
- Posted on: November 19 2006 07:30 EST
- in response to Fred Baggins
HI, Visit: http://www.roseindia.net/struts/hibernate-spring/index.shtml. This tutorial shows how to develop User Registration and Login Application using these technologies. Regards Deepak Kumar -
Re: Struts Hibernate and Spring Tutorial[ Go to top ]
- Posted by: Asif Iqbal
- Posted on: November 21 2006 03:35 EST
- in response to Deepak Kumar
HI,
Hi Deepak, I went on that site you recommended, but the sample application documentation seems incomplete, also the source download is corrupt or something. Do you know where I can get the complete tutorial/code to view and print. Regards
Visit: http://www.roseindia.net/struts/hibernate-spring/index.shtml.
This tutorial shows how to develop User Registration and Login Application using these technologies.
Regards
Deepak Kumar