Issues with creating custom tag library


2004-07-28 06:40:26 PM
jbuilder1
I have created a simple tag library and get the following error when I declare the tl in the JSP.
"Test.jsp": Error #: 901 : package WEB_0002dINF stated in source C:\apps\CustomTagExample\classes\Generated Source\.jsp\CustomTagWebModule\WEB-INF\Test_0002ejsp_jsp.java does not match directory WEB-INF
Can anyone shed any light as to this error. The declaration in the web.xml and the created .TLD are detailed below.
web.xml
<taglib>
<taglib-uri>/iterateTag</taglib-uri>
<taglib-location>/WEB-INF/SampleTag.tld</taglib-location>
</taglib>
SampleTag.tld
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>i</short-name>
<uri>/iterateTag</uri>
<tag>
<name>iterate</name>
<tag-class>IterateTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>message</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>numtimes</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>
declaration in .jsp is
<%@ taglib uri="/iterateTag" prefix="test" %>
Any ideas welcomed