HI,
I am having an error with
tomcat which says
=>
org.apache.jasper.JasperException: Unable to compile class for
JSP:
An error occurred at line: 11 in the jsp file: /hi.jsp
test2 cannot be resolved to a type
8:
9: <%@ taglib prefix="my" uri="dog" %>
10:
11: <my:dimple/>
12:
13: </body>
14:
---------------------------------------------------------------------------
My TLD file (simple.tld) is(placed in /web-inf dir)
<?xml version="1.0" encoding="UTF-8" ?>
<taglib 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-jsptaglibrary_2_0.xsd" version="2.0">
<tlib-version>1.2</tlib-version>
<short-name>
java</short-name>
<uri>dog</uri>
<tag>
<name>dimple</name>
<tag-class>test2</tag-class>
<body-content>scriptless</body-content>
</tag>
</taglib>
-------------------------------------------------------------------------
My class file (in web-inf/classes dir)
--------------------------------------------------------------------------
My jsp file (root)
<html><body>
<%@ taglib prefix="my" uri="dog" %>
<my:dimple>
${alpha}
</my:dimple>
</body></html>
I cant get this thing working . Please help.
[BPSouther: Added
code tags]
[ August 31, 2007: Message edited by: Ben Souther ]