It's not a secret anymore!
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
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF tags" Watch "JSF tags" New topic

JSF tags

Sudhakar Ponnazhagan

Joined: Feb 07, 2004
Posts: 4
1) <jsp:root version="1.2"

2) <%@ taglib uri="" prefix="h" %>
<%@ taglib uri="" 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é

Joined: Nov 24, 2005
Posts: 14688

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:
subject: JSF tags
It's not a secret anymore!