Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Tag File Validation Bugs?
Tag File Validation Bugs? [message #205754] Thu, 13 December 2007 18:58 Go to next message
Phillip DuLion is currently offline Phillip DuLionFriend
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 19:44 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
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 Web Tools Platform
Previous Topic:Re-deploying tomcat 5.5
Next Topic:JSP tag code completion
Goto Forum:
  


Current Time: Fri Apr 26 17:31:11 GMT 2024

Powered by FUDForum. Page generated in 0.03157 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top