Yes, or you can also check
http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/generic/ResourceTool.html
if it fulfills your needs.
Claude
Le vendredi 28 décembre 2007 à 09:55 -0800, Will Glass-Husain a écrit :
> You can make a tool to do this. Specifically, create an object with a
> public method, then call that method from your template.
>
> WILL
>
> On Dec 28, 2007 7:30 AM, Dumitru Postoronca <[EMAIL PROTECTED]> wrote:
> > Hello & Happy new year :),
> >
> > I'm working on a project that involves SpringMVC+Velocity and I'm trying
> > to use internationalization in a specific way:
> > Basically what I want to do in a Velocity template is something like this:
> > System.out.printf(myLocalizedMsg, foo)
> > where myLocalizedMsg=Text1 %s text2
> >
> > I've looked at #springMessage macro but doesn't allow for printf-like
> > parameters, also, I haven't found a way to make Velocity run a simple
> > System.out.print("test") in the template so it looks like you can't
> > access static methods from template.
> > Is there any way to accomplish something like this in Velocity view or I
> > have to do it in the controller?
> >
> > Thank you.
> >
> > --
> > Best regards,
> > Dumitru Postoronca
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]