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
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply 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: 3334

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
Sheriff

Joined: Jul 11, 2001
Posts: 15040

Add the following to your web.xml



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



My Blog | DZone Articles
 
 
subject: Using JSP&Servlets with Spring
 
Threads others viewed
Spring and Multiple View Resolvers
I'm confused about variable resolving for JSF 1.2+Spring2.5+Facelets1.1
JSF view path
Why we need a resolver ?
how to use different view resolvers in spring
IntelliJ Java IDE