commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Jonker <>
Subject [Jelly] Exceptions on bad expressions?
Date Mon, 09 Dec 2002 19:34:57 GMT
I'm trying to do some testing with JellyUnit, and running into no small
amount of frustration that I hope more experienced Jelly lovers can relieve.

The problem is that invalid Jelly expressions are silently ignored.  No
exception, no warning message, nothing.  So if I have a typo or other error
in an expression, eg,

   <j:set var="var" value="${foo.noSuchProperty}"/>

Then nothing happens.  Debugging these issues is a big pain in the butt.

Is there some way to configure Jelly for strict error checking?  I'd love to
have an exception thrown when the expression interpreter hits a bad
expression.  (I'd also love to have an exception thrown when an unhandled
XML tag is encountered, but I guess that's a separate issue.)

Is there any way to do this?


I believe that the first test of a truly great man is his humility. I do
not mean by humility, doubt of his own powers. But really great men have a
curious feeling that the greatness is not in them, but through them. And
they see something divine in every other man and are endlessly, foolishly,
incredibly merciful.
 --John Ruskin, author, art critic, and social reformer (1819-1900)

View raw message