Hi,
I have written a classic tag handler (to be honest copied) and tried to invoke that in jsp.but this is what i'm getting
org.apache.jasper.JasperException: Unable to compile class for
JSP An error occurred at line: 8 in the jsp file: /customtag1.jsp
Generated
servlet error:
classic1 cannot be resolved to a type
An error occurred at line: 8 in the jsp file: /customtag1.jsp
Generated servlet error:
classic1 cannot be resolved to a type
An error occurred at line: 8 in the jsp file: /customtag1.jsp
Generated servlet error:
classic1 cannot be resolved to a type
Here is my jsp:
<%@ taglib prefix="ss" uri="/WEB-INF/mytld.tld" %>
<html>
<head>
</head>
<body>
<ss:sstag>
<%
out.println(" hai inside the jsp...");
%>
</ss:sstag>
</body>
</html>
and my tld is
<?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
web-jsptaglibrary_2_0.xsd" version="2.0">
<tlib-version>1.0</tlib-version>
<tag>
<name>sstag</name>
<tagclass>classic1</tagclass>
<body-content>JSP </body-content>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>
and the tag class is compiled and placed in WEB-INF/classes.
where am i getting it wrong?