Eclipse won't reckognize and validate JSP tag dir attributes -


i'm using spring source tools 2.9.1 - had same issue standard eclipse j2ee distribution.

i'm writing java web application jsp views.

to better reuse code have created tags - *.tag files in web-inf\tags folder

example of enum.tag file:

<jsp:root version="2.0"      xmlns:form="http://www.springframework.org/tags/form"      xmlns:jsp="http://java.sun.com/jsp/page"     xmlns:spring="http://www.springframework.org/tags"     xmlns:tags="urn:jsptagdir:/web-inf/tags"     xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"     xmlns:c="http://java.sun.com/jsp/jstl/core">      <jsp:directive.tag pageencoding="utf-8" />      <jsp:directive.attribute name="value" required="true" rtexprvalue="true" type="object" />     <jsp:directive.attribute name="cssclass" required="false" rtexprvalue="true" />      <span class="enum ${value.cssclass} ${cssclass}">          <span class="message">              <spring:message code="${value.name}" />         </span>     </span>  </jsp:root> 

if use tag in jsp tag reckognized validator, tag attributes not.

so warning line of jsp

<tags:enum value="${t.state}" /> 

warning:

undefined attribute name "value" 

tag nemaspace initialized with:

xmlns:tags="urn:jsptagdir:/web-inf/tags 

how setup eclipse validate tagdir's tags?

i use xml version of jsps (and tags) - teh fiels valid xml documents, uses syntax like

<jsp:directive.tag pageencoding="utf-8" body-content="scriptless" />  <jsp:directive.attribute name="caption" required="false" rtexprvalue="true" /> <jsp:directive.attribute name="labelinfix" required="false" rtexprvalue="true" /> 

i realized , checked need use tagx extension (alongside jspx). change eclispe validation works well.


Comments