Hello,
Try putting following configuration in your web.xml if your are using Servlet 2.4 compliant container.
<listener>
<listener-class>
org.springframework.web.context.request.RequestContextListener
</listener-class>
</listener>
If you are using Servlet 2.3 compliant container then you will have to use following configuration in web.xml
<filter>
<filter-name>requestContextFilter</filter-name>
<filter-class>org.springframework.web.filter.RequestContextFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>requestContextFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
If this does not work then you will also have to add following line under each bean configuration which you want to make available with request scope.
<aop:scoped-proxy/>
Your application-context file will look something like shown below.
="1.0"="UTF-8"
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
<bean id="userMainModel" class="kp.rns.jog.user.model.UserMainModel" scope="request">
<property name="userMainDao" ref="userMainDao"></property>
<aop:scoped-proxy/>
</bean>
<bean id="userMainAction" class="kp.rns.jog.user.action.FreeUser" scope="request">
<property name="userMainModel" ref="userMainModel"></property>
<aop:scoped-proxy/>
</bean>
</beans>
Regards,