在Facelets中使用JSTL
在Facelets中使用JSTL,需要注意 namespace是 xmlns:c=http://java.sun.com/jstl/core下面是一个 .xhtml 文件的例子
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:c="http://java.sun.com/jstl/core" template="/layout/template.xhtml"><ui:define name="body"><c:forEach begin="1" end="5">aaa</c:forEach></ui:define> </ui:composition>
Reference
https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-available-jstl
页:
[1]