commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <>
Subject Re: [jira] Created: (JELLY-163) Allow Expressions to throw exceptions
Date Mon, 15 Nov 2004 10:14:18 GMT

I think this is exactly what made me stumble... I don't really get 
(I'm again about my fuzzyness of understanding jelly lifecycle... sorry 
for this!). I see two times where such an exception can occur:
- at compilation time. This should be the same when a tag would meet 
unknown attributes or a (strict) taglib would meet an unknown tag.
- at execution time, when the expression should return something 
In both cases, the exception should be thrown and wrapped into some 
generic exception which should include location information.

My current attempt was the script:
<j:jelly xmlns:j="jelly:core">
     <j:set var="b" value="blop"/>
Which did throw me an exception (as I instructed it) but which was not 
caught, or wrapped...

In which of the two phases should such a thing be caught ?
Are there other phases ?



Le 15 nov. 04, à 02:32, Hans Gilde (JIRA) a écrit :

> Expressions are evaluated before the tag is run, so it normally 
> wouldn't know anything about them.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message