Terry Steichen wrote:
> 
> Geir,
> 
> >From Section 15.1 User Guide:
> "Designers should note that set produces strings, which must be converted to
> integers to be used by the range operator. This example shows such a
> conversion:
> 
>     #set($a = "7")
>     #set($b = $int.valueOf($a) + 10)
>     $b
> 
> Yields the result 17. "

Since Context is empty when created ($int is example reference, not
default reference, I think), have you tried:

-------------------------------
ctx.put("int",new Integer());
-------------------------------

in Java and then using the above?

Bojan

Reply via email to