Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

taglib entries in web.xml  RSS feed

 
Gaurav Chikara
Ranch Hand
Posts: 413
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!