Pages

Tuesday, May 28, 2013

CQ5/AEM how to get JSTL Code complete

The Problem

After including <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> into your JSP, there is still no code complete for JSTL code, such as <c:set> or <c:out>

The Solution

You need to have the JSTL standard.jar library included in your project libraries.

If you are not using maven, you can download the 1.2 JSTL package from http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/

If you are using maven, include the following in your relevant pom files:


<dependencies>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
</dependencies>

No comments:

Post a Comment