• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

diff between taglib-uri and uri entry

 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference betweeen tablib-uri entry in web.xml
and uri entry in the tld file
are the two entries related or are completely different
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gaurav Chikara:
What is the difference betweeen tablib-uri entry in web.xml
and uri entry in the tld file
are the two entries related or are completely different
They have the very same function. If the tld file gives a uri, you do not have to use a taglib entry in web.xml to use the library but can use the tag in JSPs straightaway (see JSP.7.3.4):where "http://www.javaranch.com/taglib/1.0" would be the uri given in the tld file.
If your tld does not have a uri, you can set up the mapping between uri and tld explicitly using a <taglib> entry in web.xml.
- Peter
[ April 27, 2002: Message edited by: Peter den Haan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic