Java – JSTL for each in JSF 2
•
Java
Hi, I got the following code:
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.prime.com.tr/ui" xmlns:c="http://java.sun.com/jsp/jstl/core" > <h:body> <c:forEach items="#{backingBean.personList}" var="person"> <h:outputText value="#{person.name}" /> </c:forEach> </h:body> </html>
This failed:
java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.LoopTagStatus
I use jstl-impl-1.2 jar. Can someone help me with this? thank you
Marcel
Solution
So standard What about jar?
Do you have two jars in WEB-INF / lib?
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码