I found the answer. The Apache JSTL implementation automatically coerces the r-value to an enum. So the below example works as wanted.

Paul Benedict wrote:
Has anyone ever compared or iterated a Java 5 enum in JSP? I want do the following:
<c:if test="${obj.enumProperty == enum}">

I don't mind comparing ordinals too, but I must be able to do a comparison.

Thanks!
Paul


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

Reply via email to