tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37098] - Cannot create attributes conditionally in <jsp:element> tags
Date Mon, 17 Oct 2005 17:35:11 GMT
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





------- Additional Comments From kin-man.chung@sun.com  2005-10-17 19:35 -------
The reason for restricting the elements in the body of a <jsp:element> so that
the resultant XML element is well-formed.
 
Note that there is no restriction on the body of <c:attribute>, so the correct
way for this case is to use something like:

<jsp:element name="div">
    <jsp:attribute name="attr">
	<c:if test="${false}">something</c:if>
    </jsp:attribute>
    <jsp:body>
        bar
    </jsp:body>
</jsp:element>

Alternately, use conditional expression in EL, so the use of <c:if> is made
unnecessary.

-- 
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


Mime
View raw message