JSTL xmlns namespace differences between JSF 1.2 and JSF 2.x?

后端 未结 2 2072
小鲜肉
小鲜肉 2020-12-07 19:15

I have a JSF 1.2 based webapp from which I copied the JSTL import

xmlns:c=\"http://java.sun.com/jstl/core\"

You can also find this import i

2条回答
  •  情书的邮戳
    2020-12-07 20:09

    Check our JSTL wiki page: https://stackoverflow.com/tags/jstl/info You can get this kind of page whenever you hover the jstl tag below your question until a black box pops up and then click the info link.

    It is true that Facelets 1.x and 2.x uses different namespaces for the JSTL tag library. It was less or more a namespace bug in Facelets 1.x and has been fixed for Facelets 2.x.

    • The real JSTL 1.0 taglib uses the URI http://java.sun.com/jstl/core.
    • The real JSTL 1.1/1.2 taglib uses the URI http://java.sun.com/jsp/jstl/core.
    • Facelets 1.x uses the URI http://java.sun.com/jstl/core.
    • Facelets 2.x uses the URI http://java.sun.com/jsp/jstl/core.
    • Facelets 2.2+ uses the URI http://xmlns.jcp.org/jsp/jstl/core.

    You can find all Facelets 2.x tags in the Facelets tag library documentation. Facelets don't ship with the full tag set as the real JSTL taglib. Only a few of the and the full set of are copied into Facelets. The , and tags are not taken over in Facelets.

提交回复
热议问题