A parameter is being set and I need to check if it is a number or not. If not, I need to change its value to 1.
<c:if test="${param.pageOffset TEST HERE}">
<c:set target="param" property="pageOffset" value="1" />
</c:if>
I’m very new to jsp so I could be completely on the wrong track. Any help would be much appreciated!
If possible it’s better to do this type of processing in your Java code, and send the result ready-made to the JSP.
I’m not sure if there is a way to do this using pure JSTL but if you decide to keep this operation in the JSP you could just use a scriptlet