You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/10/14 22:19:45 UTC

DO NOT REPLY [Bug 37098] New: - Cannot create attributes conditionally in tags

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: ndp@mac.com


<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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org