Given:
1. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/
jstl/core" %>
2. <%@ taglib prefix="tables" uri="http://www.javaranch.
com/tables" %>
3. <%@ taglib prefix="jsp" tagdir="/WEB-INF/tags" %>
4. <%@ taglib uri="UtilityFunctions" prefix="util" %>
What about the above taglib directives would cause the
JSP to not function?
A. Line 4 is wrong because the prefix attribute must come before the
uri attribute.
B. Line 3 is wrong because there is no uri attribute.
C. Line 4 is wrong because the uri value must begin with
http://
D. Line 3 is wrong because the prefix jsp is reserved for standard actions.
Answer given is : C.
The value in the uri attribute used in the tag must match with the value of the <uri> tag in TLD.
We can specify any value for uri such as: UtilityFunctions or a uri starting with
http:// or
ftp:// it doesn't matter.
So how come the option C is a valid answer.
Please clarify my doubt.
Thanks in advance.