Chris,
Am Friday 15 October 2010 schrieb Christopher Schultz:
%...@taglib prefix=myLib uri=http://my-domain.org/customLib%
myLib:customTag value=${myEnum}/
myLib:customTag value=foo.${myEnum}.bar/
I would expect, that this outputs:
VALID
foo.VALID.bar
The output in
On 15 Oct 2010, at 17:42, Oliver Siegmar oli...@siegmar.org wrote:
Pid,
Am Friday 15 October 2010 schrieb Pid:
No, because that would call a method getName() which doesn't exist - the
method is named name().
c:out value=${myEnumValue.getName()}/
I don't think that'll work in 6.0.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Oliver,
On 10/15/2010 1:40 AM, Oliver Siegmar wrote:
Am Thursday 14 October 2010 schrieb Christopher Schultz:
So I'm surprised that Oliver is getting that weird output.
I wrote in my initial mail to this list I have an enum that has an
Chris,
On Friday 15 October 2010 16:11:29 Christopher Schultz wrote:
not. Sorry for the confusion. So this is a simplified example for my enum:
You're right: that was stupid of me. I had forgotten your toString method.
Uh... why override the toString method like that?
Well, as written in
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Oliver,
On 10/15/2010 10:19 AM, Oliver Siegmar wrote:
Chris,
On Friday 15 October 2010 16:11:29 Christopher Schultz wrote:
not. Sorry for the confusion. So this is a simplified example for my enum:
You're right: that was stupid of me. I had
On 15/10/2010 15:22, Christopher Schultz wrote:
Oliver,
On 10/15/2010 10:19 AM, Oliver Siegmar wrote:
Chris,
On Friday 15 October 2010 16:11:29 Christopher Schultz wrote:
not. Sorry for the confusion. So this is a simplified example for my enum:
You're right: that was stupid of me. I had
Hello,
now I tried with jstl-api-1.2.jar and jstl-impl-1.2.jar downloaded from
https://jstl.dev.java.net/download.html - same result.
Am Friday 15 October 2010 schrieb Christopher Schultz:
Uh... why override the toString method like that?
Well, as written in java.lang.Enum:
An enum
Pid,
Am Friday 15 October 2010 schrieb Pid:
No, because that would call a method getName() which doesn't exist - the
method is named name().
c:out value=${myEnumValue.getName()}/
I don't think that'll work in 6.0.
That's right.
Or, just consistently use EL, since that actually
Or, just consistently use EL, since that actually works as you expect.
+1 'c:out' seems surplus.
And how do you escape XML characters to entity codes using pure EL?
This seems a valid reason except that is this a problem for your enum?
If it really is a problem then did you try and create
Hello,
Am Friday 15 October 2010 schrieb Maximilian Stocker:
Or, just consistently use EL, since that actually works as you expect.
+1 'c:out' seems surplus.
And how do you escape XML characters to entity codes using pure EL?
This seems a valid reason except that is this a problem
...@siegmar.org]
Sent: Friday, October 15, 2010 1:29 PM
To: Tomcat Users List
Subject: Re: Inconsistent output of Java 5 enums
Hello,
Am Friday 15 October 2010 schrieb Maximilian Stocker:
Or, just consistently use EL, since that actually works as you expect.
+1 'c:out' seems surplus.
And how
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Oliver,
On 10/15/2010 1:28 PM, Oliver Siegmar wrote:
The enum is part of a 3rd party lib. And of course, there are several
workarounds available, but I want to understand what is happening here and
clarify if it's a bug.
Just for the record,
Am Friday 15 October 2010 schrieb Maximilian Stocker:
On tomcat 5.5. I get
#1 = A is for Apple
#2 = A is for Apple
On tomcat 6 I get
#1 = APPLE
#2 = A is for Apple
Which is obviously not the same, and surprised me, but it seems if I
understand this thread that it is the opposite of
PM
To: Tomcat Users List
Subject: Re: Inconsistent output of Java 5 enums
Am Friday 15 October 2010 schrieb Maximilian Stocker:
On tomcat 5.5. I get
#1 = A is for Apple
#2 = A is for Apple
On tomcat 6 I get
#1 = APPLE
#2 = A is for Apple
Which is obviously not the same, and surprised me
Am Saturday 16 October 2010 schrieb Maximilian Stocker:
Okay. Then while I think it is a bug in tomcat (but it might be tomcat 5
that has the bug because I still don't 100% understand what it *should*
do) I am not sure what the problem is.
Do you want the toString value or the name() value?
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
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
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
Hi Pid,
Am Thursday 14 October 2010 schrieb Pid:
Which JSTL implementation are you using and which Java version was it
compiled for/on?
http://repo2.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar
Using Sun/Oracle Java 6u21
Bye
Oliver
On 14/10/2010 20:03, Oliver Siegmar wrote:
Hi Pid,
Am Thursday 14 October 2010 schrieb Pid:
Which JSTL implementation are you using and which Java version was it
compiled for/on?
http://repo2.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar
Using Sun/Oracle Java 6u21
OK.
The
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Pid,
On 10/14/2010 3:21 PM, Pid wrote:
On 14/10/2010 20:03, Oliver Siegmar wrote:
Hi Pid,
Am Thursday 14 October 2010 schrieb Pid:
Which JSTL implementation are you using and which Java version was it
compiled for/on?
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
On 10/14/2010 3:24 PM, Christopher Schultz wrote:
Pid,
On 10/14/2010 3:21 PM, Pid wrote:
On 14/10/2010 20:03, Oliver Siegmar wrote:
Hi Pid,
Am Thursday 14 October 2010 schrieb Pid:
Which JSTL implementation are you using and which Java
On 14/10/2010 20:31, Christopher Schultz wrote:
All,
On 10/14/2010 3:24 PM, Christopher Schultz wrote:
Pid,
On 10/14/2010 3:21 PM, Pid wrote:
On 14/10/2010 20:03, Oliver Siegmar wrote:
Hi Pid,
Am Thursday 14 October 2010 schrieb Pid:
Which JSTL implementation are you using and which
2010/10/14 Christopher Schultz ch...@christopherschultz.net:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
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
+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
Hi all,
Am Thursday 14 October 2010 schrieb Christopher Schultz:
So I'm surprised that Oliver is getting that weird output.
I wrote in my initial mail to this list I have an enum that has an overridden
toString() method. I thought it was clear what that means, obviously it was
not. Sorry for
25 matches
Mail list logo