JSP 2.0: <jsp:attribute> in <c:if>

Discussion in 'Java' started by Timo Nentwig, May 10, 2004.

  1. Timo Nentwig

    Timo Nentwig Guest

    Hi!

    <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

    IMHO this is something that needs to be solved. As a workaround I can
    put the if condition into the attribute in order to generate an empty
    attribute but this is not quite well-formed XML.
    Timo Nentwig, May 10, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bostonasian
    Replies:
    1
    Views:
    815
    Joris Gillis
    Sep 18, 2005
  2. Replies:
    2
    Views:
    1,075
    Henry S. Thompson
    Mar 6, 2006
  3. Replies:
    0
    Views:
    4,350
  4. Donnal Walter

    class attribute to instance attribute

    Donnal Walter, Jun 30, 2005, in forum: Python
    Replies:
    4
    Views:
    462
    Greg Ewing
    Jul 6, 2005
  5. Russell Warren
    Replies:
    5
    Views:
    465
    Russell Warren
    Jan 17, 2006
Loading...

Share This Page