Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Tag File Validation Bugs?
Tag File Validation Bugs? [message #205754] Thu, 13 December 2007 13:58 Go to next message
Phillip DuLion is currently offline Phillip DuLion
Messages: 1
Registered: July 2009
Junior Member
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>

Thanks,
Phillip.
Re: Tag File Validation Bugs? [message #205763 is a reply to message #205754] Thu, 13 December 2007 14:44 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2237
Registered: July 2009
Senior Member
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>

This are both omissions in WTP 2.0's JSP support. The second is a
known problem:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197220. Please open a
bug report for the first.

---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Re-deploying tomcat 5.5
Next Topic:JSP tag code completion
Goto Forum:
  


Current Time: Thu Jul 31 07:49:15 EDT 2014

Powered by FUDForum. Page generated in 0.07319 seconds