commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dion Gillard <dion.gill...@gmail.com>
Subject Re: [jelly]: Escaping output of JEXL expression
Date Wed, 06 Jul 2005 21:39:43 GMT
could you use a whitespace tag with escapeXML true and trim false?

On 7/6/05, Christian Kalkhoff <c.kalkhoff@vitrado.de> wrote:
> 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
> 
> 


-- 
http://www.multitask.com.au/people/dion/
"You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live." - George
Bernard Shaw

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message