File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Using JSP&Servlets with Spring

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

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: 15302

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:
subject: Using JSP&Servlets with Spring
It's not a secret anymore!