Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 57779 invoked from network); 3 Jul 2007 23:20:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2007 23:20:09 -0000 Received: (qmail 52038 invoked by uid 500); 3 Jul 2007 23:20:07 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 50847 invoked by uid 500); 3 Jul 2007 23:20:04 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 50820 invoked by uid 99); 3 Jul 2007 23:20:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 16:20:04 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [195.140.232.141] (HELO mail1.triplemind.com) (195.140.232.141) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 16:20:00 -0700 Received: from noname.local (C2993.c.strato-dslnet.de [62.104.41.147]) (authenticated bits=0) by mail1.triplemind.com (8.12.8/8.12.8) with ESMTP id l63NJScG021882 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Jul 2007 23:19:28 GMT Message-ID: <468AD980.40608@triplemind.com> Date: Wed, 04 Jul 2007 01:19:28 +0200 From: Christoph Gaffga User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: commons-dev@jakarta.apache.org CC: "users@cocoon.apache.org" Subject: [Jexl] linebreaks in jexl expressions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-triplemind.com-MailScanner-Information: Please contact the ISP for more information X-triplemind.com-MailScanner: Found to be clean X-triplemind.com-MailScanner-SpamCheck: not spam, SpamAssassin (score=-99.89, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 1.91, USER_IN_WHITELIST -100.00) X-MailScanner-From: cgaffga@triplemind.com X-Virus-Checked: Checked by ClamAV on apache.org hi, I tried using the apache-cocoon JX generator (it uses jexl for it's expressions within the template) to convert linebreak from strings to
elements. I ran into some problem with searches for linebreaks, like:

${value.indexOf('\n')}

or

${value.indexOf(' ')}

The first throws NullPointerException in java reflection classes, the second throws a Jexl Lexical Exception in the parser. Was anybody successful to get the index of a linebreak within a string? Any ideas? regards, Christoph cgaffga@triplemind.com --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org