Hello,
I'm writing some scripting support to be used together with velocity for
a project i'm creating. So far JDK 6 Scripting API is really cool, but
there is one problem when i want to work with velocity.
The class ScriptingEnvironment is the place where my scripts will be
executed, so i added it to my velocity context with the key 'script'.
This ScriptingEnvironment contains a function like the following:
public Object execute(String function, Object... parameters) throws
Exception;
I wanted to call this from within my template like this:
${script.execute("increment", 10);
but it seems the code won't get executed because of the vararg attribute
parameters.
I just wondered if this is just me being stupid in using velocity or
maybe a feature for a next release of the engine?
Many regards,
Daan Gerits
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]