Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"cannot resolve symbol" error on jsp at every custom Tag I define

Status
Not open for further replies.

royc75

Programmer
Jun 1, 2006
127
GB
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top