Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

taglib entries in web.xml

 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we have multiple taglib entries in web.xml file
i tried using one more taglib entry and it did not affected
the jsp file which was running smoothly previously also
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gaurav Chikara:
can we have multiple taglib entries in web.xml file
If you look in the servlet 2.3 spec, SRV.A.2 on page 240, you will see in the DTD:The star behind "taglib" means that you can have zero, one or more taglib entries. So: yes.
In a JSP 1.2 container, though, you will need to use taglib entries much less often, because the container automatically reads all *.tld files it can find, extracts the uri (if given) and sets up taglib mappings for them (see JSP.7.3.4).
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic