Search code examples
springjspspring-mvcjstl

Is it necessary to specify Spring JstlView resolver to use JSTL in JSP?


While using InternalResourceViewResolver in Spring, is it necessary to specify viewClass as org.springframework.web.servlet.view.JstlView to use JSTL? Because without specifying it I am still able to access JSTL tags (I used <c:out/>) in JSP without any exception or error.


Solution

  • I found the answer at seeing the InternalResourceViewResolver and here

    The JstlView class is set by default if we resolve view using InternalResourceViewResolver and jstl jar is in classpath.