What is the correct way in jsp to retrieve a integer parameter from an url? I need to make sure it's an integer to avoid possible XSS issues, as it's directly inserted in a Spring message i18n and sent to the client.
I need to retrieve 5 from the url http://localhost?allowed_phones=5
. I've tried this, which does not work:
<spring:message code="code" arguments="{Integer.valueOf(param['allowed_phones'])}" />
What could be the cause?