You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@velocity.apache.org by vijaya sarathy <vi...@gmail.com> on 2008/01/09 12:22:49 UTC

Using Resource Bundle in VM file

Hi

         How to handle or use ResourceBundle in VelocityMacros(vm)
file. Please give me a solution..

Thanks
Vijaya Sarathy

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@velocity.apache.org
For additional commands, e-mail: general-help@velocity.apache.org


Re: Using Resource Bundle in VM file

Posted by Nathan Bubna <nb...@gmail.com>.
You could use VelocityTools (http://velocity.apache.org/tools/devel/),
which provides a ResourceTool to simplify resource access in templates
(http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/generic/ResourceTool.html)

Or you could just put the resource bundle in the context and call its
methods directly from there.

On Jan 9, 2008 3:22 AM, vijaya sarathy <vi...@gmail.com> wrote:
> Hi
>
>          How to handle or use ResourceBundle in VelocityMacros(vm)
> file. Please give me a solution..
>
> Thanks
> Vijaya Sarathy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@velocity.apache.org
> For additional commands, e-mail: general-help@velocity.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@velocity.apache.org
For additional commands, e-mail: general-help@velocity.apache.org