Sunday, April 29, 2012

JSTL, jsp-api with IVY

Many Application servers include jstl.jar in their classpath. However tomcat doesn't.
When you include it in your dependency manager, it pulls jsp-api.jar which conflicts with the one
shipped with tomcat. Therefore you need to exclude jsp-api.jar. For ivy users,


<dependency org="javax.servlet" name="jstl" rev="1.2" conf="compile->*" >
            <exclude module="jsp-api" />
</dependency>

<dependency org="javax.servlet" name="javax.servlet-api" rev="3.0.1" conf="provided->*" />