velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul M <pjm...@yahoo.com>
Subject Getting all variables define in context
Date Wed, 09 Jul 2008 16:59:02 GMT
How do I get all keys that were set by java app.?
i.e.

Java:
context.put("name", "Velocity");
context.put("project", "Jakarta");

Velocity:
$name
$project
$versionDoesNotExist

#foreach($key in $application.attributeNames) works good, but not what I need!
  
#foreach($key in $context.keys) does nothing; because $context is null?
so
#foreach(??? in ???)
return
"name","project"...etc


 
 


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message