Nathan Bubna wrote:
Thilo said: ...
By the way, there was this nasty whitespace problem in velocity.properties where the values in "aProperty = aValue " and "aProperty = aValue" are interpreted as different values. It is probably just a propertyValue.trim() that is needed. Could you possibly also look after that?
if there is such a problem (i'm not sure what you're describing, and my eyes can't see any difference between the two strings you've typed above), then the best place to take it up would probably be commons-collections, since Velocity (or the VelocityViewServlet at least) uses their ExtendedProperties class to handle velocity.properties.
Although the ExtendedProperties class is used internally, VelocityServlet loads the properties itself by calling:
p.load( new FileInputStream(propsFile) );
where "p" is a Properties object and then passes that object to Velocity.init(p). The propertise are then set into an ExtendedProperties object. So it would be possible for to iterate through the properties and trim whitespace.
-Bill
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
