Monday, September 29, 2008

Tomcat 5.5 and JSTL

How to use JSTL tag library with Tomcat 5.5 and Maven:
  1. Add Maven dependencies:
  2. Make sure you use at least Servlet version 2.4 in web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="" xmlns:xsi=""
  3. Add declaration in your JSP file:
    <%@ taglib prefix="c" uri="" %>
  4. Use JSTL tags:
    <c:set var="conditionValue" value="${true}"/>
    <c:if test="${conditionValue}">

No comments: