EPractice Lab review quiz 3 taglib's uri is absolute or relative
posted 11 months ago
Which of the following are valid values for the "uri" attribute of the taglib directives?
a. relative URI
b. absolute URI
c. both a and b
d. none of the above
Given answer : c.
I think it does not matter what uri is , no matter it is relative URI or absolute URI.
In JSP, we use the correct uri as specified in tld, it should be fine.
The container won't look for any files or any URL from the uri, according to Head First.
posted 10 months ago
I can answer my own question.
The relative URI can be the path of the tld file relative to the root of the application.
For example , <@taglib prefix="myTag" uri="/WEB-INF/tlds/mytld.tld" %>