Hi,
I want to pass an integer from a
servlet to
JSP. If I put it in session I'm not able to retrieve it as I'm not able to cast it from object type to int type, I'm also not able to pass it with the URL as I'm not able to cast
string to int, I'm not allowed to use cookies. How can I do it ? your suggestions please. When I use the following command I don't know why but when I retrieve the value of indSelect I get the value 'pageSelected' rather then value 12 which I'm assigning it in the servlet
int pageSelected = 12;
getServletConfig().getServletContext().getRequestDispatcher("/jsp/showResults.jsp?indSelect=pageSelected").forward(request, response);
Thanks
Neha