commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Gaffga <cgaf...@triplemind.com>
Subject Re: [Jexl] String Literals with Newline do not work
Date Fri, 06 Jul 2007 18:24:26 GMT
> Sorry, yes, I was thinking of another language.
> Try using a variable instead:
> 
> jc.getVars().put("nl","\n");
> e = ExpressionFactory.createExpression("foo.bar.indexOf(nl)");
> 

thanks a lot, works great, also with JXGenerator in Apache-Cocoon:

  <jx:set var="nl" value="&#10;"/>
  ${foo.bar.indexOf(nl)}


Christoph


---------------------------------------------------------------------
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