Hi Paul,
sorry about that. See:
<myTag>
<content>${myVariable.firstname}</content>
</myTag>
If myVariable.getFirstname returns a string containing one of the xml
special chars like & " <> further processing of the xml will fail.
I could handle that in the getter of my bean, but i think there is no
place for such content rewriting. As jelly knows it outputs XML (does i
do so?) it should do that for me.
Christian
Paul Libbrecht wrote:
> Can you be more precise, maybe make a tiny test-case ?
> paul
>
>
> Le 6 juil. 05, à 14:05, Christian Kalkhoff a écrit :
>
>> Hi,
>>
>> i ran into the problem, that jelly outputs invalid xml if one of the
>> beans available as context variables contains e.g. an & char. Is there
>> a way to tell jelly (or jexl) to escape such xml special chars. Are
>> there workarounds?
>>
>> Regards,
>> Christian
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
|