For example
// need somehow do something like this: total.put(\'key\', \'value\');
You can use JSTL for this.