Thanks, I didn't think so. Anyhoo, I decided to while
$props.get('server.dir') version as it is much more straight forward.Thanks for your help, Rick -----Original Message----- From: Nathan Bubna [mailto:[EMAIL PROTECTED] Sent: September 15, 2005 10:53 AM To: Velocity Users List Subject: Re: Escaping the dot character. there's no way to do that that i'm aware of. you might be better off leaving that stuff in a map. then you can do $props.get('server.dir') instead. or, you might look into what the MessageTool (in the VelocityStruts portion of VelocityTools) does. there's a simple little hack in there that lets us simplify the $text.get('this.that') into the much nicer looking: $text.this.that On 9/15/05, Rick Szeto <[EMAIL PROTECTED]> wrote: > Hi, > I am merging my templates with key value pairs from a properties file. > > //Properties file > server.dir=/opt/myserver > > // template > Blah blah ${server.dir} > > My question is whether or not there is a way to escape the '.' > character is it thinks the object name is 'server' and 'dir' is a > subproperty rather then the string of 'server.dir'. > > Thanks > Rick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
