tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Siegmar <>
Subject Insonsistent output of Java 5 enums
Date Sun, 10 Oct 2010 09:29:57 GMT
Hallo all,

I'm a bit confused about how differed Java 5 enums are handled in JSPs. I have 
an enum that has an overridden toString() method.

My JSP looks like this:

Output per EL: ${myEnumValue} <br/>
Output per JSTL: <c:out value="${myEnumValue}"/>

The output is:

Output per EL: VALID
Output per JSTL: valid result, code 0

The EL output is what I expected (based on section 1.18.2 of the 2.1 JSP-EL 
spec). But I expected the same output per JSTL.

Is this a bug or a feature? :-)

BTW: I'm using Tomcat 6.0.29 and JSTL 1.2.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message