Situation:
I have created a sample web project which contains one custom tag and one JSP page that uses that tag. My project folders are:
root
|_src
| |_tags
| |_CounterTag.java
|
|_WebRoot
| |_WEB-INF
| |_tlds
| | |_counter.tld
| |_web.xml
|_ hello.jsp
counter.tld file contains the description of the tag:
. . . . . .
<taglib>
. . . . . .
<tag>
<name>counter</name>
<tagclass>tags.CounterTag</tagclass>
<bodycontent>empty</bodycontent>
</tag>
</taglib>
The hello.jsp file contains the following code:
<body>
<%@ taglib uri="WEB-INF/tlds/counter.tld" prefix="util" %>
This page was accessed <b><util:counter/></b> times.
</body>
On the row where counter tag is used Eclipse shows the following error:
‘No tag “counter” defined in tag library imported with prefix “util”‘
If I deploy the page on the server and open it in web-browser everything works fine but this error is just annoying. Can I fix it somehow?