Dear Sir,
In the UserAuthenticationServlet.java file i am setting the
cmpValue 0.
But when i am trying to get the value in
jsp why the cmpvalue display
the null instead of 0 value.
cmpValue = (
String)session.getAttribute("cmpValue");
out.println("cmpValue"+cmpValue); //null instead of 0 value.
Could please rectify my code so that i will getting the 0 value.
UserAuthenticationServlet.java
int myInt=0;
session.setAttribute("cmpValue", new Integer(myInt));
x.jsp
cmpValue = (String)session.getAttribute("cmpValue");
out.println("cmpValue"+cmpValue);
Thanks and Regards
Sumanta Panda