I encountered a strange problem in displaying jsp pages in Spring MVC.
I correctly configured view mapping, and jsp file can be found and read by browser, but only code not effect are displayed.
I cannot find others have similar problem.
Finally, after trying lots of possibilities, I found that I incorrectly configured url-pattern in web.xml:
<servlet-mapping>
<servlet-name>spring-mvc</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
The correct one is :
<servlet-mapping>
<servlet-name>spring-mvc</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>