aspose file tools*
The moose likes JSF and the fly likes JSF tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF tags" Watch "JSF tags" New topic
Author

JSF tags

Sudhakar Ponnazhagan
Greenhorn

Joined: Feb 07, 2004
Posts: 4
1) <jsp:root version="1.2"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsp="http://java.sun.com/JSP/Page">

2) <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

I couldnt make out the situation where these above tags are used, like we normally use the 2nd type for the JSP/JSF tags. Have any idea?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Yes. The first one is used for JSP documents, which means JSP strictly following the XML syntax. In this case, you have to declare the libraries in the <jsp:root>.

The second one is for common JSP pages.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF tags
 
Similar Threads
problem with basic jsf tags in the jsp
what is facelets?
Please reply me!!
unable to instantiate tag f:view
jsp:include in JSF