Hello Jelle,
My file structure is mentioned below:
The Fruit.jsp file
E:\tomcat\webapps\ROOT\fruitpack\Fruit.jsp
The MyTag.tag file
E:\tomcat\webapps\ROOT\WEB-INF\tags
The URL that I type in my browser is:
http://localhost:8080/fruitpack/Fruit.jsp
The web.xml file
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">
<display-name>
Welcome to Tomcat</display-name>
</web-app>
My web.xml file contains mappings for filters, listeners and servlets. I have not indicated the mappings in this post as I have not used web.xml file for this particular page. I mean, I have placed my tag files in the 'tags' directory and have mentioned the directory path on the JSP as the value of the taglib's 'tagdir' attribute.
I also want to point out that my other tags where <jsp:attribute> is not used are working fine.
Regards,
John.