This content has been marked as final.
Show 2 replies
-
1. JBJCA-263
jeff.zhang Jan 26, 2011 7:31 AM (in response to maeste)Hi Stefano,
Or we can provide a third one?
---- quote from freemarker document http://freemarker.sourceforge.net/fmVsVel.html
- When you try to access an undefined variable, FreeMarker will not accept that silently. You can configure FreeMarker to stop template rendering with an error message, or skip the wrong part. In either case, FreeMarker will log the problem, so it does not remain hidden.
Just FYI
Regards
-
2. JBJCA-263
jesper.pedersen Jan 26, 2011 9:05 AM (in response to maeste)I think that if a system property can't be resolved - e.g. the result of the operation is null - an exception should be thrown with a descriptive message including the element/attribute name and the expression (${my.property} f.ex.).
Keep in mind that String based elements/attributes are special, as null would be a valid input value. These we have catch in the validation layer of the code.