Hi,
I'm trying to access a map I've added in the template context of a select custom query:
I tried various ways to access the map (based on my experience, and then on the velocity documentation):
$sevMapper.key
$sevMapper.get("key")
$sevMapper["key"]
${sevMapper.get("key")}
etc...
Did I miss something ? How can I access that map from my custom query ? I've also tried using the $rawValue prefix, no success...
Many thanks for your help,
Thomas
I'm trying to access a map I've added in the template context of a select custom query:
Code:
HashMap<String, String> severityLocalizer = new HashMap<String, String>(); [...] req.addToTemplateContext("sevMapper", severityLocalizer); return super.executeFetch(req);
$sevMapper.key
$sevMapper.get("key")
$sevMapper["key"]
${sevMapper.get("key")}
etc...
Did I miss something ? How can I access that map from my custom query ? I've also tried using the $rawValue prefix, no success...
Many thanks for your help,
Thomas
Comment