JSP unknown tag warning in Eclipse

JSP unknown tag warning in eclipse is not an error and it is not something which is wrong in your code. When your source code is correct and Eclipse still giving you “Unknown tag name/Invalid directives/Duplicate tag” warnings in yellow underlines, It annoys coder a lot.

There can be multiple reasons for this warning like JSTL libraries or @taglibs. let’s have a look at it.

How to remove JSP unknown tag warning in Eclipse

Here are following steps, which can help you to rid of eclipse warnings.

  1. GOTO the “Package Explorer” and right click on your project.
  2. choose “properties” and from properties dialogue box chose “Validation” option, just from the left menu bar.
  3. with “validation” chose one by one (HTML Syntax/Jsp syntax/ XML Syntex) and Uncheck “Enable project specific settings “.

Or you can disable “project-specific settings” for all (html/jsp/xml) in one go, As given in below screenshot:

JSP unknown tag warning in Eclipse

 

Note :

Please make sure that you have a taglib declaration in your JSP page and added JSTL jar files in project classpath.

<%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core” %>

 

Please connect via comments for more explanation or queries related to JSTL issues, we will happy to help you. www.ease2code.com

Speak Your Mind

*