Thanks for the information but i on using the configuration suggested i am getting :
javax.servlet.ServletException: No adapter for handler [org.springframework.web.servlet.view.ResourceBundleViewResolver@9ed91f]: Does your handler implement a supported interface like Controller?
org.springframework.web.servlet.DispatcherServlet.getHandlerAdapter(DispatcherServlet.java:1086)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:873)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Changes done were:
example-servlet.xml
<bean id="logoutViewResolver" class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
<property name="basename">
<value>views</value>
</property>
</bean>
Url Mapping is done:
bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
prop key="/logout.htm">logoutViewResolver
/bean>
view.properties:
logout.class=org.springframework.web.servlet.view.JstlView
logout.url=/WEB-INF/jsp/login.htm
Please suggest how to fix the problem.