Hi,
I am reading the int value from a session object in a
jsp as follows.
session.setAttribute("number", 3);
accessing the above value as follows:
int n = Integer.parseInt((String)session.getAttribute("number"));
in the above case i am getting a Class Cast Exception.
if i read the same value by using the following code it's fine.
int n = Integer.parseInt(session.getAttribute("number").toString());
I have written this code long back
it was working fine but from today only its getting the exception. I didnt
update the system/tomcat server configurations.
Please help me out to resolve the issue.