jsp - why printing the value after casting from request.getAttribute to int causing NullPointerException? -
int age = (integer)request.getattribute("age"); out.println(age);
why 2nd line throwing nullpointerexception ??
out.println(age);
the thing can null in statement out
. so, if nullpointerexception @ line, means out
null.
Comments
Post a Comment