You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christoph Gaffga <cg...@triplemind.com> on 2007/07/04 01:19:28 UTC
[Jexl] linebreaks in jexl expressions
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('
')}</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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org