Hi,

I need to do something like this:

<jsp:element name="td">
  <c:if test="${colspan != 1}">
    <jsp:attribute name="colspan">${colspan}</jsp:attribute>
  </c:if>
  <jsp:body>
    loads more JSTL tags
  </jsp:body>
</jsp:element>

i.e. set the colspan attribute of the <td> element only if colspan is not 1.
This doesn't work as <jsp:attribute/> must be a direct subelement of <jsp:element/> (here there is <c:if/> in between).
How should I do this?


Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to