Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Correct namespace delcaration for JSTL in facelets?

843844Dec 5 2009
I have been having pretty good experience so far keeping up with the latest Netbeans 6.8 releases for my Facelets application. There is one odd question I was trying to work out.

Some of my code uses the JSTL tags, mostly for things like selecting different parts of the document when the user is logged in vs. not logged. Mostly I avoid logic in the presentation layer as much as possible but I don't see how to do without this.

Up until now the namespace declaration has been:
xmlns:c="http://java.sun.com/jstl/core
{code}

but that does not work anymore.  The netbeans editor cannot find that library.  It can when I change the declaration to:

{code}
xmlns:c="http://java.sun.com/jsp/jstl/core
However I thought that Facelets 2.x was all about getting rid of the JSP underlayer. Which is the correct declaration to use, and what is the difference between them? Why would Netbeans change this between 6.7 and 6.8?

Another question: the user [documentation that I can find|https://facelets.dev.java.net/nonav/docs/dev/docbook.html] mentions c:if and c:foreach, but not c:choose. Yet it seems c:choose works. I want to use c:choose because it is very convenient in some cases but am I creating a forward comparability problem for myself in some future version of Facelets?

Thanks for any pointers or insights.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2010
Added on Dec 5 2009
0 comments
126 views