Spring Framework

Spring Projects

Spring Project 1

adplus-dvertising
UrlbasedViewResolver in Spring MVC
Previous Home Next

The UrlBasedViewResolver provide the facility to map logical view name and URL directly with the view class. This view resolver using InternalResourceViewResolver which are view the page using JSP,Servlet,JstlViews and TileViews. This view resolver configure in following type:

<bean id="viewResolver"
class="org.springframework.web.servlet.view.
UrlBasedViewResolver">
<property name="viewClass" 
value="org.springframework.web.servlet.view.JstlView"/>
<property name="prefix" value="/WEB-INF/jsp/"/>
<property name="suffix" value=".jsp"/>
</bean>
Previous Home Next