Use c: set to set a non-string value
1 answer
EL has automatic type conversion. This article has some good info. However, not to mention that you do not care. You should be able to do things like the following, since param.month is essentially an integer.
<c:set var="myInteger" value="${param.month}"/>
<p>
The value of myInteger is:<c:out value="${myInteger}"/>
Perform a multiplication operation to show that the type is correct:
<c:out value="${myInteger *2}"/>
+3