Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 16393 invoked from network); 6 Jul 2005 21:41:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jul 2005 21:41:09 -0000 Received: (qmail 14556 invoked by uid 500); 6 Jul 2005 21:41:02 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 14507 invoked by uid 500); 6 Jul 2005 21:41:02 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 14494 invoked by uid 99); 6 Jul 2005 21:41:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2005 14:41:01 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=RCVD_BY_IP,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dion.gillard@gmail.com designates 64.233.184.197 as permitted sender) Received: from [64.233.184.197] (HELO wproxy.gmail.com) (64.233.184.197) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2005 14:39:47 -0700 Received: by wproxy.gmail.com with SMTP id i12so58941wra for ; Wed, 06 Jul 2005 14:39:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s6u95keapJ2vyD/X7TvBnf+e4ETETcx4xhQECNW9cAUZq9uoj7pU2MGkm7NyB3gKOegW9EqDwJCpij7B1M4Mp+73uOvxuURW5mhRvlsA5t8WoUaVIeb1khG7DzrEf6tiLN4dcTDtHaNHiwshSnmCC5X4FsbCAJ4F4WzMgZv9V4A= Received: by 10.54.47.79 with SMTP id u79mr125990wru; Wed, 06 Jul 2005 14:39:43 -0700 (PDT) Received: by 10.54.138.16 with HTTP; Wed, 6 Jul 2005 14:39:43 -0700 (PDT) Message-ID: Date: Thu, 7 Jul 2005 07:39:43 +1000 From: Dion Gillard Reply-To: Dion Gillard To: Jakarta Commons Users List Subject: Re: [jelly]: Escaping output of JEXL expression In-Reply-To: <42CBE042.8050905@vitrado.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42CBC920.20902@vitrado.de> <42CBE042.8050905@vitrado.de> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N could you use a whitespace tag with escapeXML true and trim false? On 7/6/05, Christian Kalkhoff wrote: > Hi Paul, >=20 > sorry about that. See: >=20 > > ${myVariable.firstname} > >=20 > If myVariable.getFirstname returns a string containing one of the xml > special chars like & " <> further processing of the xml will fail. >=20 > 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. >=20 > Christian >=20 > Paul Libbrecht wrote: > > Can you be more precise, maybe make a tiny test-case ? > > paul > > > > > > Le 6 juil. 05, =E0 14:05, Christian Kalkhoff a =E9crit : > > > >> 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 > > >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org >=20 >=20 --=20 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