• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EPractice Lab review quiz 3 taglib's uri is absolute or relative

 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" %>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic