Mapping jsp for a url in Spring 3 without using controller
java-ee-6, spring, spring-mvc
Solution
You can do this:
<mvc:view-controller path="/login" view-name="login"/>
Assuming that you have defined a ViewResolver, something like this:
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/views/" />
<property name="suffix" value=".jsp" />
</bean>
This will resolve a request to `/login` to a `/WEB-INF/views/login.jsp` page
Problem
How to map a jsp for a url in spring 3 without requestmapping to any controller. eg. /login to login.jsp without having any userdefined controller in between Like URLFILENAMECONTROLLER in spring2.5, similarly in spring 3