My blog has moved!

You will be automatically redirected to the new address. If that does not occur, visit
http://utku-utkan.appspot.com/
and update your bookmarks.

Pages

Saturday, May 3, 2008

JSTL 1.2 with Tomcat 6

The new Tomcat 6 does not come with JSTL 1.2 pre-installed. If you are going to use JSTL in a Web application then you should manually add this support by putting the required library (jstl-1.2.jar) to the lib folder of Tomcat. You can download the latest version of JSTL from here.

If you are managing your project with Maven, you should also apply these extra steps.

1. Add this repository element either into pom.xml/<project>/<repositories>, or into conf/settings.xml/<profiles>/<profile>/<repositories>.

<repository>
    <id>java.net</id>
    <url>http://download.java.net/maven/1</url>
    <layout>legacy</layout>
</repository>


2. Add this dependency element into pom.xml/<project>/<dependencies>.

<dependency>
    <groupId>jstl</groupId>
    <artifactId>jstl</artifactId>
    <version>1.2</version>
    <scope>provided</scope>
</dependency>