To answer your question, logout is the view name obtained from the ModelAndView returned by the controller. If you are having problems, you will need the following additional setup.
You need to add the servlet mapping for *.htm to web.xml :
<web-app>
<servlet>
<servlet-name> htm </servlet-name>
<servlet-class> org.springframework.web.servlet.DispatcherServlet </servlet-class>
<oad-on-startup> 1 </load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name> htm </servlet-name>
<url-pattern> * .htm </url-pattern>
</servlet-mapping>
</web-app>
And if you want to map directly to *.jsp without creating a custom controller, you need to add the following bean to the Spring context:
<bean id = "urlFilenameController"
class = "org.springframework.web.servlet.mvc.UrlFilenameViewController" />
source share