https://issues.apache.org/bugzilla/show_bug.cgi?id=49799
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 AssignedTo: dev@tomcat.apache.org ReportedBy: philipp.jurew...@gmx.net Created an attachment (id=25926) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25926) A JSP file which show three different use cases of the jsp:attribute omit attribute 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: http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14471459 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%>" >color:red</jsp:attribute> 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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org