DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=37098>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37098 Summary: Cannot create attributes conditionally in <jsp:element> tags Product: Tomcat 5 Version: 5.5.7 Platform: Macintosh URL: http://www.talkaboutprogramming.com/group/comp.lang.java .programmer/messages/630086.html OS/Version: Mac OS X 10.4 Status: NEW Severity: critical Priority: P3 Component: Jasper AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] <jsp:element name="div"> <c:if test="${false}"> <jsp:attribute name="onmouseover"> return overlib('foo'); </jsp:attribute> </c:if> <jsp:body> bar </jsp:body> </jsp:element> -> Attribute onmouseover invalid for tag if according to TLD As a workaround - can put the if condition into the attribute in order to generate an empty attribute but this is not quite well-formed XML. This only works in some cases - use CDATA to define elements Both of these are poor alternatives. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]