Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Problem in injecting interface

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am working on a simple application in spring 2 and hibernate 3. I have a signin.jsp page whcih took two values and save them to database. Form gets submitted to controller which is SignInController and i have created a SignInDao interface and having it's implementation in SignInManager class, which has method "getHibernateTemplate().merge(signIn)" to delegate the saveing of data. I inject SignInDao in SignInController using setter injection and set transaction handeling in application context file. Now i am not been able to inject the SignInDAO interface as it's giveing me an erro while running on tomcat as



I am putting up here my controller, SignInDAO interface and SignInManager which is the implementation of SignInDAO along with application context file.

login-servlet.xml



SignInController.Java



SignInDAO.Java



SignInManager.Java



Can somebody please suggest where am i wrong.
 
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic