I've come across two possible bugs with validation of tag files. I'm
wondering if anyone else has come across this.
1. Tag file validation issues an "Undefined attribute name" warning on
dynamic-attributes for both of the following versions. The attribute is
correctly defined (and works on Tomcat) for both JSP 2.0 and 2.1.
<%@ tag body-content="empty" dynamic-attributes="attrs" %>
2. Tag file validation issues a "Missing required attribute" error on the
following statement. While the use of EL might be a bit edgy, it works as
expected in Tomcat 6.0. However, the use of <jsp:attribute> should
satisfy the required attribute.
Phillip wrote:
> I've come across two possible bugs with validation of tag files. I'm
> wondering if anyone else has come across this.
>
> 1. Tag file validation issues an "Undefined attribute name" warning on
> dynamic-attributes for both of the following versions. The attribute is
> correctly defined (and works on Tomcat) for both JSP 2.0 and 2.1.
>
> <%@ tag body-content="empty" dynamic-attributes="attrs" %>
>
> <jsp:directive.tag body-content="empty" dynamic-attributes="attrs"/>
>
> 2. Tag file validation issues a "Missing required attribute" error on
> the following statement. While the use of EL might be a bit edgy, it
> works as expected in Tomcat 6.0. However, the use of <jsp:attribute>
> should satisfy the required attribute.
>
> <c:set var="data" scope="page">
> <x:out><jsp:attribute name="select">${value}</jsp:attribute></x:out>
> </c:set>