1. when we specify uri attribute in the <taglib> directive it has the same value as <uri> tag in the TLD
2. it has the same value as <taglib-uri> (sub-element of <taglib>)specified in the web.xml file.
according to me option 4 would be thw correct one, because when you place the tag library at the allowed location there is no need for explicit mapping in web.xml.
no matter even if the tag library placed in the form of .jar.
Please help me to get the correct one... got really confused. it seems my tag library knowledge vanishes
--->So there is no need for Taglib element in Web.xml
yes there is no need to declare <taglib> element in the web.xml, as the jsp 2.0 container automaticaly searchs for the approriate one.
---->if it is not present then value in taglib directive should be the uri declared in TLD file is it?
right again!! if have to put the uri attrinute in the taglib directive to match the <uri> element mention in TLD
-----> suppose if the web.xml has taglib element then valu of uri element in taglib directive should be the one in web.xml
however JSP 2.0 container does the mapping automaticaly, you do not need to declare one in the web.xml. inspite of this container always look for the matching <taglib> element first indeed AND then it goes for the automatic mapping. So if you provide <taglib> element in web.xml file the uri attribute much match the one you specified with<taglib-uri> tag. though I am not much clear about it... Please verify this..