struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <pbened...@apache.org>
Subject Re: Help: JSP and Java 5 enum
Date Fri, 06 Apr 2007 04:46:58 GMT
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message