The tag library descriptor shown in the exhibit has been kept in /WEB-INF/mytlds/tld1.tld folder of the webapplication. What should be inserted at line 6 so that line 7 will work as expected?
5. ...
6. <<INSERT CODE HERE >>
7. <mytags:tag1 />
Assume that the application can be accessed through
http://localhost/myapp
1. <% taglib uri="/WEB-INF/mytlds/tld1.tld" %>
2. <% taglib prefix="mytags" uri="/WEB-INF/mytlds/tld1.tld" %>
3. <% taglib prefix="mytags" uri="http://abt.com/tld/mytaglib" %>
4. <% taglib prefix="mytags" uri="
http://localhost/myapp/WEB-INF/mytlds/tld1.tld" %>
the 2nd option is true. Why?? I thought the value of
<uri></uri> tag in the TLD is specified in the <%@taglib
uri=""%> directive. I know that we can specify the direct path to the TLD file as a value of uri attribute. I got confused.
Please help
Please correct me if I am wrong.