Spring Struts and Hibernate

Discussions

Web tier: servlets, JSP, Web frameworks: Spring Struts and Hibernate

  1. Spring Struts and Hibernate (2 messages)

    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
  2. Struts Hibernate and Spring Tutorial[ Go to top ]

    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
  3. 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
    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