[Jexl] String Literals with Newline do not work

2007-07-06 Thread Christoph Gaffga (triplemind.com)
hi all, I have some problems to use Jexl expressions to look for special characters in strings, like newline or tabs: e = ExpressionFactory.createExpression(foo.bar.indexOf('\n')); o = e.evaluate(jc); there seem to be no way to encode the linebreak, I also tried '\\n' etc. No chance, always

Re: [betwixt] Re: Howto serialize the classname when writing XML

2004-10-06 Thread Christoph Gaffga \(triplemind.com\)
I added a patch for that case, including some samples for the xdocs. see: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=31553 committed. many thanks. the pleasure is mine. this breaks compatibility with code i committed earlier this week but (in this case) given the short time

[betwixt] Re: Howto serialize the classname when writing XML

2004-10-05 Thread Christoph Gaffga \(triplemind.com\)
i think that the code i've just committed should allow you to solve your problem. unfortunately, it's not as well documented as i would have liked (it's getting late for me and i need to finished off the 0.6 release). basically, i've refactored the code so that betwixt now ignores the class

Re: [betwixt] Howto serialize the classname when writing XML

2004-09-29 Thread Christoph Gaffga \(triplemind.com\)
a concrete example would be useful (so i'm sure i understand you correctly)...? (i'm guessing that you want to map a com.example.SomeException class to xml which looks something like: exception messageMysterious problem/message classcom.example.SomeExceptionclass /exception) exactly that

[betwixt] Howto serialize the classname when writing XML

2004-09-26 Thread Christoph Gaffga \(triplemind.com\)
hi, I have to output some Exception instances to XML using betwixt, but it doesn't seem to be possible to get the class name into the XML result. First of all it should output the name of the class only, and not introspect the whole Class type. This is done well because the type Class is handled