Jon,

The conditional operator is very useful, not just in obscure
uses :-).

It has been added to the EL in JSP 2.0.

-- Pierre

Jon Archer wrote:
Am I right in thinking there's no way to condense:

<c:choose>
  <c:when test="${someBean.someProperty == someValue}">
    <c:out value="${option1}" />
  </c:when>
  <c:otherwise>
    <c:out value="${option2}" />
  </c:otherwise>
</c:choose>

to (something like):

<c:out value="${someBean.someProperty == someValue ? option1 : option2}"
/>

It would be rather handy for an obscure use am I putting the EL to work
on.

TIA,
Jon


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





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



Reply via email to