Hi,

 

I have 2 questions:  the first, is, can I get from an int to an integer
in the VTL, as so:

$Integer.getInteger($String.valueOf($myInt))?

It just prints all that text back out, so I don't know if it works. 

 

 Second,

What is the VTL syntax for using a map of maps.   

Has anyone had any luck implementing this?  

 

Lets say this is my code:

 

HashMap storedValues = new HashMap();

for (int I = 0; I < 5; I++) {

            HashMap times = new HashMap();

            times.put("hour", somevalue[i]);            

times.put("min", someothervalue[i]);      

            storedValues.put(arrayOfStrings[i], times);

}

context.put("storedValues", storedValues);

 

Now how do I get to somevalue[i] from VTL?

$storedValues.get($dynamicStringVariable).get("hour") sure doesn't work.

 

Please help,

Dan

 

(The connection between my questions is because $dynamicStringVariable
is actually created by conversion from an int)

 

Reply via email to