dognobbler
Programmer
Under directory /webapps/examples I have created a custom tag, a TLD file (examples/WEB-INF/exampleTags.tld) and have amended my web.xml file using.
<taglib>
<taglib-uri>
</taglib-uri>
<taglib-location>
/WEB-INF/exampleTags.tld
</taglib-location>
</taglib>
I have inserted a reference to the TLD into my JSP ie.
<%@ taglib prefix="example" uri=" %>
and my custom tags works fine.
However when I move all of the relevant files to a new folder /webapps/test I get an error telling me that the JSP cannot locate the TLD file.
When I change the taglib to a relative link ie.
<%@ taglib prefix="example" uri="/WEB-INF/exampleTags.tld" %>
everything works fine again. Any idea why the web.xml reference to the TLD stops working outside of the examples directory.
Thanks
Andy
<taglib>
<taglib-uri>
</taglib-uri>
<taglib-location>
/WEB-INF/exampleTags.tld
</taglib-location>
</taglib>
I have inserted a reference to the TLD into my JSP ie.
<%@ taglib prefix="example" uri=" %>
and my custom tags works fine.
However when I move all of the relevant files to a new folder /webapps/test I get an error telling me that the JSP cannot locate the TLD file.
When I change the taglib to a relative link ie.
<%@ taglib prefix="example" uri="/WEB-INF/exampleTags.tld" %>
everything works fine again. Any idea why the web.xml reference to the TLD stops working outside of the examples directory.
Thanks
Andy