Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

 
Ranch Foreman
Posts: 1905
13
  • 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 Foreman
Posts: 1905
13
  • 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" %>
 
Does this tiny ad smell okay to you?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic