tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pid *" <...@pidster.com>
Subject Re: Inconsistent output of Java 5 enums
Date Sat, 16 Oct 2010 07:06:14 GMT
On 15 Oct 2010, at 17:42, Oliver Siegmar <oliver@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.
>
> That's right.
>
>>> 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?

JSTL Function?

I can't remember the exact syntax.

${fn:escapeXml(my.attribute)}


p

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

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


Mime
View raw message