problem in HttpSession to retrive the values
in my project i used two session variables and i set the value for it ..
By retrieving the value i got ClassCastException......
THIS IS FIRST JSP ...........
this is my part of source code ..
i got error in that ....
i got size from html page that will be number ...
String record_per_page = request.getParameter("size");
int record_per_page_1 = Integer.parseInt(record_per_page);
and create session attribute ..........>
session.setAttribute("value2",record_per_page1);
second i created another session object ..............>
links simply int variable.......
Integer link_object = new I nteger(links);
session.setAttribute("link",link_object);
IN Second jsp.....
retriving process ................
String links_object = (String) session.getAttribute("link");
int links = (int) Integer.parseInt(links_object);
String record_per_page = (String)session.getAttribute("value2");
int record_per_page_1 = Integer.parseInt(record_per_page);
here i got error classcastException
Thanks

