File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Using JSP&Servlets with Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Using JSP&Servlets with Spring" Watch "Using JSP&Servlets with Spring" New topic
Author

Using JSP&Servlets with Spring

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hi.
My application uses Spring and plain servlets and JSP as a presentation layer.
In the application there is on object that uses a HibernateDao in order to access the database.
How can get an instance of that object that I have configured in Spring context file ?
(In a similar way of using factory.getBean( ))
Should I create a resolver such the following when I'm using JSP an Servlets ?
What does a resolver do ?

Thanks for help.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

Add the following to your web.xml



And then do the following when needing an instance of your wired bean...



GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using JSP&Servlets with Spring