webtier@glassfish.java.net

Re: [webtier] JSPs, Enums, and toString

From: <webtier_at_javadesktop.org>
Date: Tue, 06 Apr 2010 15:09:55 PDT

According to EL 2.2 spec, 1.18.2, when a Enum is coerced to a String, Enum.name() is used. One may argue that toString() should be used instead, but the current behavior conforms to the spec.
[Message sent by forum member 'kchung']

http://forums.java.net/jive/thread.jspa?messageID=395592