tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Siegmar <oli...@siegmar.org>
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.



Best

Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message