I am trying to set an attribute in pagContext with scope. While i am able to
successfully do this with scope int=1,2 or 3, it gives me
NullPointerException with scope = pageContext.APPLICATION_SCOPE (or = 4)

The code i am using to set attribute is as under....................
pageContext.setAttribute("nit","fantastic",pageContext.APPLICATION_SCOPE);
                     OR
pageContext.setAttribute("nit","fantastic",4);

Can any one tell me why do i get NullPointerException when i try to set an
attribute having Application Scope.

thanks,
Nitin

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to