Loading
Spring JSP JSTL

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  Spring Integration with JSP-JSTL.


Ans)

Just as with any other view technology you're integrating with Spring, for JSPs you'll
need a view resolver that will resolve your views. The most commonly used view resolvers
when developing with JSPs are the InternalResourceViewResolver and the
ResourceBundleViewResolver. Both are declared in the WebApplicationContext

<bean id="viewResolver" 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>

Similarly there are some other resolovers .
i) org.springframework.web.servlet.view.velocity.VelocityViewResolver.
Ii) org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Spring JSP JSTL


Spring JSP JSTL

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free