Configuring JSP view resolver

The following example shows the commonly used approach to configure a JSP view resolver using InternalResourceViewResolver. The physical view name is determined using the configured prefix and suffix for the logical view name using JstlView:

    <bean id="jspViewResolver" class=  
"org.springframework.web.servlet.view.
InternalResourceViewResolver">
<property name="viewClass"
value="org.springframework.web.servlet.view.JstlView"/>
<property name="prefix" value="/WEB-INF/jsp/"/>
<property name="suffix" value=".jsp"/>
</bean>

There are other approaches using property and XML files for mapping.