Why I try to run this example I get a NumberFormatException. Part of the log is as follows:
..java.lang.NumberFormatException: For input string: "listIdx"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Long.parseLong(Long.java:403)
at java.lang.Long.valueOf(Long.java:518)
at com.sun.el.lang.ELArithmetic$LongDelegate.coerce(ELArithmetic.java:205)
at com.sun.el.lang.ELArithmetic.coerce(ELArithmetic.java:373)
at com.sun.el.lang.ELArithmetic.add(ELArithmetic.java:255)
at com.sun.el.parser.AstPlus.getValue(AstPlus.java:57)
at com.sun.el.parser.AstBracketSuffix.getValue(AstBracketSuffix.java:54)
at com.sun.el.parser.AstValue.getValue(AstValue.java:133)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001)
at org.apache.jsp.redirect_jsp._jspService(redirect_jsp.java:86)
Can someone tell me why it is trying to convert 'listIdx' to Long? I tried another example on the similar lines and it was using Double instead of Long. I dont understand what EL does...