tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Inconsistent output of Java 5 enums
Date Fri, 15 Oct 2010 18:40:00 GMT
-----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, this has nothing to do with Tomcat: the bug would
be in the JSTL implementation, which you got from a 3rd-party.

> And it's not just the c:out tag - it also happens with other Tags. For 
> demonstration I've created a custom Tag:

[snip]

>         <attribute>
>             <name>value</name>
>             <required>true</required>
>             <rtexprvalue>true</rtexprvalue>
>         </attribute>

[snip]

> <%@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 catalina.out is very interesting:
> 
> VALID
> foo.VALID result, code 0.bar

Okay, that might be a bug in Tomcat.

Weird: I would expect that the JSTL relies on the platform's EL
implementation to work. So, I don't understand why this works for a bare
EL expression like ${enum} and not <foo value="${enum}" />

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky4oAAACgkQ9CaO5/Lv0PBD/ACfS+pevIoCaFI/tkIcc+eCcuNJ
1LUAn3sMZEKtX+uvW8161muWPlLmuUR+
=ug3y
-----END PGP SIGNATURE-----

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


Mime
View raw message