You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Todd Jonker <tv...@pobox.com> on 2002/12/09 20:34:57 UTC

[Jelly] Exceptions on bad expressions?

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?

Thanks,
.T.

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