About Question enthuware.jwpv6.2.744 :
Posted: Thu Feb 02, 2012 12:05 pm
I don't understand why we need to specify the <taglib> instructions in web.xml
In other question there is the following explanation:
Thank you.
In other question there is the following explanation:
This question asks about the required action so that jsp can access the tags in the jar library. Why "None of these" is not a valid answer?Make a jar file of all the classes and include *.tld files in META-INF directory inside the jar. You can drop this jar file in WEB-INF/lib of the webapp.
In this case, you need not specify any <taglib> tag in the web.xml. The servlet container will automatically inspect the *.tld file in the jar file and for each <uri> element in the tld, it will add <taglib> tag in web.xml.
Thank you.