commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Gaffga <cgaf...@triplemind.com>
Subject [Jexl] linebreaks in jexl expressions
Date Tue, 03 Jul 2007 23:19:28 GMT
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
<br> elements.

I ran into some problem with searches for linebreaks, like:

<p>${value.indexOf('\n')}</p>

or

<p>${value.indexOf('&#10')}</p>

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


Mime
View raw message