You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by James Wang <to...@yahoo.com> on 2002/08/20 09:27:39 UTC
how to set a global variable in Jetspeed?
In Jetspeed,I want to set a global variable in
context,
so i can use it in every Velocity template,
everytime i set a variable in a template like that,
...
context.put("user","james");
setTemplate("index.vm");
...
and then i can use '$user' in index.vm,but as i refer
to another Velocity template page from index.vm,
the $user will be null,but i want to keep its value,
how can i do?
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>