June 2017
Intermediate to advanced
496 pages
14h 4m
English
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.
Read now
Unlock full access