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

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -