taglib

Concatenate strings in JSP EL?

对着背影说爱祢 提交于 2019-11-26 16:43:45
问题 I have a List of beans, each of which has a property which itself is a List of email addresses. <c:forEach items="${upcomingSchedule}" var="conf"> <div class='scheduled' title="${conf.subject}" id="scheduled<c:out value="${conf.id}"/>"> ... </div> </c:forEach> This renders one <div> per bean in the List. For the sublist, what I'd like to be able to do is to concatenate each of the entries in the list to form a single String, to be displayed as a part of the <div> 's title attribute. Why?

Can not find the tag library descriptor for http://java.sun.com/jsf/facelets

孤人 提交于 2019-11-26 13:53:27
问题 I've a JSP with <%@taglib uri="http://java.sun.com/jsf/facelets" prefix="ui" %> However it errors with The absolute uri: http://java.sun.com/jsf/facelets cannot be resolved in either web.xml or the jar files deployed with this application I have libraries facelets-lib.jar and jsf-facelets-1.1.10.jar , which I suppose is Facelets, but they do not contain JSP taglib descriptors. What file is correct? 回答1: Facelets is intented to replace JSP altogether. But yet you're attempting to declare it as