In the file "setvalue.jsp" I set a variable like this:
Integer t = 10;
and in another file "getvalue.jsp" I'm trying to get the stored value like this:
Integer m = (Integer)application.getAttribute("tvalue");
if (m == null)
When running getvalue.jsp is returned this error: org.apache.jasper.JasperException: PWC6049: Attempted a bean operation on a null object. But when I use getAttribute("tvalue") in the same file ("setvalue.jsp"), it works fine.
What is it happening ?
Thanks for your patience :)
Joined: Sep 12, 2012
I got it, the error was caused by remains of previous attempts :)