as of J2SE5 enum is a J2SE keyword 
 
http://en.wikibooks.org/wiki/Java_Programming/Keywords/enum

hth
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> Date: Thu, 14 Oct 2010 19:50:42 +0100
> From: p...@pidster.com
> To: users@tomcat.apache.org
> Subject: Re: Inconsistent output of Java 5 enums
> 
> On 14/10/2010 19:42, Christopher Schultz wrote:
> > Oliver,
> > 
> > On 10/14/2010 12:24 PM, Oliver Siegmar wrote:
> >> On Wednesday 13 October 2010 21:21:33 Christopher Schultz wrote:
> >>> What do your taglib declarations look like? I've only used the JSTL a
> >>> little bit, and I found that when you have the wrong taglib URL, things
> >>> don't work properly.
> > 
> >> This is how I use JSTL core:
> > 
> >> <%...@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
> > 
> > That looks like the one that worked properly for me.
> > 
> > I unfortunately know very little about the JSTL and it's interaction
> > with POJOs. I would expect that value="${enum}" would somehow convert
> > the value to a String for inclusion into the output stream, and calling
> > EnumType.toString sounds like the right thing to do.
> > 
> > Can you look at the translated .java file that comes from your sample
> > .jsp and post what the JSP compiler has generated?
> > 
> > This might be a bug, but I'm not really sure. What if the object is not
> > an enum?
> 
> Which JSTL implementation are you using and which Java version was it
> compiled for/on?
> 
> 
> p
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
                                          

Reply via email to