You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Franck Arnulfo <fa...@pipoware.com> on 2003/03/24 22:05:12 UTC
Display all context variables in a template
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
Re: Display all context variables in a template
Posted by Joseph Rosenblum <ro...@corp.earthlink.net>.
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" <fa...@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