Removed JSP Tag Libraries
The
Escenic
relation
tag library has been completely removed. You can
replace any relation
tags in your applications as
follows:
relation:articles
-
Use
<c:foreach>
instead. The example below iterates through all related articles in thesummary
relation type and creates a link to each article:<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <c:forEach items="${article.relatedItems['summary']}" var="currentItem"> <a href="${currentItem.url}">${currentItem.title}</a><br/> </c:forEach>
If you need to filter related items, based on content type, for example, you can do so using JSTL.
relation:images
-
Images have been replaced by articles. See the description of
relation:articles
above. relation:persons
-
Use
<c:foreach>
instead. The example below iterates through all related persons and prints their name:<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <c:forEach items="${article.persons}" var="currentItem"> ${currentItem.name}<br/> </c:forEach>