Which of the following are properly formated taglib elements occuring in web.xml?
1.
<taglib>
<taglib-uri>/binomial</taglib-uri>
<taglib-location>/WEB-INF/MathLib.tld</taglib-location>
</taglib>
2.
<taglib>
<taglib-uri>/binomial</taglib-uri>
<taglib-location>/WEB-INF/MathLib.jar</taglib-location>
</taglib>
3.
<taglib id="ABC_MATH_LIB">
<taglib-uri>/binomial</taglib-uri>
<taglib-location>/WEB-INF/MathLib.tld</taglib-location>
</taglib>
4.
<taglib name="ABC_MATH_LIB">
<taglib-uri>/binomial</taglib-uri>
<taglib-location>/WEB-INF/MathLib.jar</taglib-location>
</taglib>
5.
<taglib author="ABCINC">
<taglib-uri>/binomial</taglib-uri>
<taglib-location>/WEB-INF/MathLib.tld</taglib-location>
</taglib>
Exam source says option 1,2,3 are correct.
But my doubt lies here...Is this correct?
<taglib>
<taglib-uri>/binomial</taglib-uri>
<taglib-location>/WEB-INF/MathLib.jar</taglib-location>
</taglib>
According to me it should be MathLib.tld and not MathLib.jar....right?
Or is it shown like this because the TLD is deployed in a JAR....but in that case the location should have been WEB-INF/lib/MathLib.jar and not WEB-INF/MathLib.jar....Am I right?
I quite confused....could any one please clarify this....Many thanks in advance
[ December 26, 2006: Message edited by: Sayak Banerjee ]