tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49799] New: The new JSP 2.2 omit-attribute in jsp:attribute does not work with EL or expressions
Date Sun, 22 Aug 2010 20:44:22 GMT

           Summary: The new JSP 2.2 omit-attribute in jsp:attribute does
                    not work with EL or expressions
           Product: Tomcat 7
           Version: 7.0.2
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper

Created an attachment (id=25926)
 --> (
A JSP file which show three different use cases of the jsp:attribute omit

I'm trying to make use of the new omit-attribute in the jsp:attribute. This new
feature of JSP 2.2 is described in the Specs in JSP.5.10.

Table JSP.5-7 Attributes for the <jsp:attribute> standard action

omit (optional) Valid values are true and false. If true, and when
used with <jsp:element>, the attribute in the element being
ouput is omitted. Ignored when used with a standard or
custom action. Defaults to false.

There is an introduction text here:

and I'm trying to make this work in my setup but I'm failing. Or I don't get
the point.

The following works:
<jsp:element name="p">
    <jsp:attribute name="style" omit="true" >color:red</jsp:attribute>

The following does NOT work:
<jsp:element name="p">
    <jsp:attribute name="style" omit="<%=jspExpressionTrue%>"

The following does NOT work either:
<jsp:element name="p">
    <jsp:attribute name="style" omit="${trueEL}" >color:red</jsp:attribute>

Full JSP code in my attachment. I actually use the JSP-document (XML /
JSPX-)syntax, but it does not work in any of the JSP dialects.

So I don't get the point why I should not be able to use EL in the
omit-attribute, because then it's kind of useless.

I use
Windows Vista 64bit
JavaSE 1.6
Apache Tomcat 7.0.0 and Apche Tomcat 7.0.2beta
JSTL 1.1.2

All setup together in a typical "Dynamic Web Project" in Eclipse 3.6 Helios

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message