velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Rosenblum <rosenblu...@corp.earthlink.net>
Subject Re: Display all context variables in a template
Date Mon, 24 Mar 2003 21:31:37 GMT
I use something like this:

Object [] keys = context.internalGetKeys();
for (int i=0; i< keys.length; i++) {
    output.append((String)keys[i] + " --  " +
        context.internalGet((String)keys[i]) + "\n");
}

-Joe Rosenblum

On 3/24/03 1:05 PM, "Franck Arnulfo" <fa1@pipoware.com> wrote:

> Hi,
> 
> I would like to print all context variables in a template.
> Is there a simple way to do that ?
> 
> Thanks
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 


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


Mime
View raw message