I am learning how to create a custom tag. I found an example and trying to implement . Iam getting an error: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/Heading.tld: (line 3, col 6).
My Heading.tld is as follows:
I am using struts1.3.8,Tomcat6. Is anything wrong with DOCTYPE?? Please help me in solving this error. I tried removing the DOCTYPE, now I am getting error: /pages/HeadingExample.jsp(11,0) Unable to load tag handler class "actions.HeadingTag" for tag "head:heading"
I am getting the error: /pages/HeadingExample.jsp(11,0) Unable to load tag handler class "actions.HeadingTag" for tag "head:heading" .
I am trying all the possible ways to solve this error. I noticed that there is no .class file for this HeadingTag.java. So I compiled this file separetly to check whether this file works correctly. But I got 13 errors. I really couldn't get why Iam getting all these errors. What's wrong with this java file.
Thank you for all your replies. I am using Tomcat6.0. I thought JSP 2 will support JSP1.2. So JSP2.0 wont support classic tags(TagSupport)? I have to use SimpleTag handler?? Tell me the necessary changes I have to do for my code to work. Please send me a link or an example to learn.