I don't know about a recommended way, but couldn't you add the lines of
your properties file to the Velocity model, using
Page#getModel().putAll( yourPropertiesObject )?
It might be a memory issue for huge properties files, so you could
(should ?) add a caching mechanism.
HTH,
WarnerJan
On Mon, 2009-07-20 at 10:05 -0400, Garth Dahlstrom wrote:
> Hi
> I'm wondering if there is a recommended approach to replacing
> variables that occur within other variables.
>
> I have text which I add to the model that comes from a properties file
> that looks like:
> Intro=Hello ${Name}, welcome to the application
> Name=John
>
> I could break up intro into chunks in my template, but that will make
> things slightly more difficult to maintain, particularily when I send
> it for translation.
>
> So, is there a way to get model-variable subsitution to run a second
> time or a way for me to change the to-be-rendered output to acomplish
> something like this?
>
> Thanks,
> -G
>