Albareto McKenzie wrote:For trying ${noofcards} you need to have the jstl 1.2 library in your system.
Not correct. The EL does not require the JSTL to operate. The web app must be properly configured.
What the OP is trying to do is simple, but apparently his web app is misconfigured. Until he provides enough info to diagnose the problem, the problem will persist.
All this nonsense with casting and such will not help.
So.... is a forward or a redirect being used? and how is the web app being configured in the web.xml? These are the relevant questions that must be answered.