[htmltmpl-java] access to tmpl_var inside of tmpl_loop
Status: Beta
Brought to you by:
bluesmoon
|
From: Thomas W. <tw...@im...> - 2002-09-04 09:32:13
|
Hello,
i try following java code fragment:
.....
// a normal template variable
template.setParam("sessionID",sessionID);
// a template loop
template.setParam("newsloop",Newsmanager.getNews());
....
in html:
.....
<tmpl_loop newsloop>
news: <tmpl_var news><br>
sessionID: <tmpl_var sessionID>
</tmpl_loop>
.....
the problem is, that the var "news" is correct set
inside the loop, but the outside of the loop declared
variable "sessionID" is not set.
How can i access tmpl_vars inside the
loop, which are not declared in the loop-hashtable?
What you think about it?
Waffel (alias Thomas Wabner) |