try TurbineTemplate.getTemplateContext(data)

john mcnally

Lothar Krause wrote:
> 
> Is there a way to figure out which context is currently used from within a
> request pull-tool?
> 
> ie given "Example.vm"
> 
> ...
> $mytool.foo() or $mytool.foo(thisContext)
> ...
> 
> with class MyTool implements ApplicationTool {
>    ...
>    /* from init */
>    RunData data;
>    public String foo() {
>       ...
>       VelocityContext outerVC = ??????;
>       /* so parameters set in outerVC appear within the screen */
>       return renderInnerScreen(new VelocityContext(outerVC));
>    }
> }
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to