Pages

Thursday, June 24, 2010

Using the JSP Standard Tag Library (JSTL) in Spring Framework

We need jar files namely jstl.jar and standard.jar that are there in the Spring Framework, these files are to be copied to ‘/war/WEB-INF/lib' directory.

Also we have to copy this file from the Spring distribution ('spring-framework-2.5/dist/resources/spring-form.tld') to the 'springapp/war/WEB-INF/tld' directory that we also need to create. Next we must also add a <taglib/> entry to the 'web.xml' file.

  <jsp-config>
<taglib>
<taglib-uri>/spring</taglib-uri>
<taglib-location>/WEB-INF/tld/spring-form.tld</taglib-location>
</taglib>
</jsp-config>

No comments:

Post a Comment