Hello,
Every custom Tag I am adding to my JSP I receive a "cannot resolve symbol" error on the Tag Class I created. For example:
I created a tag called RequiredTag and put it's .class at the classes folder.
I have created a custom.tld file for it as followed:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC
"-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
" >
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>2.0</jsp-version>
<short-name>test</short-name>
<uri><tag>
<name>hello</name>
<tag-class>RequiredTag</tag-class>
<body-content>empty</body-content>
<description>Prints Hello</description>
</tag>
</taglib>
I have updated the web.xml as followed:
<taglib>
<taglib-uri><taglib-location>/WEB-INF/custom.tld</taglib-location>
</taglib>
and the JSP as followed:
<%@ taglib uri=" prefix="test" %>
Yet, when I try to use the tag I receive the a "cannot resolve symbol" error on the RequiredTag. Any idea why?
Every custom Tag I am adding to my JSP I receive a "cannot resolve symbol" error on the Tag Class I created. For example:
I created a tag called RequiredTag and put it's .class at the classes folder.
I have created a custom.tld file for it as followed:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC
"-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
" >
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>2.0</jsp-version>
<short-name>test</short-name>
<uri><tag>
<name>hello</name>
<tag-class>RequiredTag</tag-class>
<body-content>empty</body-content>
<description>Prints Hello</description>
</tag>
</taglib>
I have updated the web.xml as followed:
<taglib>
<taglib-uri><taglib-location>/WEB-INF/custom.tld</taglib-location>
</taglib>
and the JSP as followed:
<%@ taglib uri=" prefix="test" %>
Yet, when I try to use the tag I receive the a "cannot resolve symbol" error on the RequiredTag. Any idea why?