File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes taglib-uri and taglib-location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "taglib-uri and taglib-location" Watch "taglib-uri and taglib-location" New topic

taglib-uri and taglib-location

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
A taglib-uri element describes a URI identifying a tag library used in the web
I am clear about taglib-location but what is this uri.
small eg please.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
The taglib-uri can be used to specify a unique name given to your TLD file(tag library). A JSP can use this to reference your tag library. The advantage of this is that if you change your Tag Library location or TLD file name, you don't have to change all your JSP's. In your web.xml file just change the taglib-location and you are done.
Thus you can minimize the amount of work to be done when a TLD file needs to be re-located or re-named.
- satya

Take a Minute, Donate an Hour, Change a Life
I agree. Here's the link:
subject: taglib-uri and taglib-location
It's not a secret anymore!