Here I am trying to use tag files in JSP2.0 with tomcat 5.
test.jsp
-------
%@ taglib prefix="test" tagdir="/WEB-INF/tags" %>
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
initial values
<test:testtag/>
</body>
</html>
testtag.tag Tag file is
-----------
<p>bottom of message </p>
This is working fine.
But when I tried to pass attribute from jsp file as
<test:testtag field1="raja"/>
or
<test:testtag name="field1" value="raja"/>
then I am getting error message as
"Attribute "field1" invalid for tag testtag according to TLD".
Here I wonder why TLD is coming? even for tag files also TLD has to be filled.
If TLD is needed for tag files then what to fill for class name in .TLD file?
even I tried by keeping this below line in .tag file
<%@ attribute name="field1" required="false" %>
There was no use. Please can somebody clarify this.
Yamini.