From: <cha...@da...> - 2004-08-17 20:36:38
|
Null is a fairly common - and often valid value to be returned from a getter (or set with a setter). Here is the template declaration: displayName: $customer.DisplayName customer is a Customer object that has been put to the context and has a getDisplayName method. The default behavior on template.write for a null value translation is as follows: description: <!-- Value is null: $customer.Description at c:\projects\wrxj\src\com\skdaifuku\server\servlet\webmacro\jat.wm:12.17 --> Can I somehow configure this to simply insert an empty string (i.e. "") instead of the error- as this is not really an error and having to map null to empty strings would be un-natural to regular java object handling of null values? Chad |