Consider the following taglib definition in the deployment descriptor. Which of the following directives can be used inside a
JSP page?
1. <% taglib name="/tableutils" prefix="u" %>
2. <%@ taglib uri="tableutils" prefix="u" %>
3. <%@ taglib uri="/tableutils" prefix="u" %>
4. <%@ taglib="/utils" prefix="u" %>
5. <%@ taglib url="/tableutils" prefix="u" %>
Answer 3 is correct.
Answer 1 is incorrect, the attribute name is invalid with the taglib directive and the directive is incorrectly declared (<% instead of <%@)
Answer 2 is incorrect, the URL within the uri attribute has to be relative according to the web.xml declaration.
Answer 4 is incorrect, the URL is incorrect.
Answer 5 is incorrect, the url attribute is invalid for the taglib directive.
The taglib directive in a JSP page declares that the page uses a tag library, uniquely identifies the tag library using a URI and associates a tag prefix that will distinguish usage of the actions in the library.
--------
I don't understand the question.. In HFS it says, that URI is just a name & not a location & the explaining given is ....??/ please help