scope and context.. ?
Hi...
Can any one clarify me whats the difference between a context and a scope ?
Ex. whats is difference between pageCOntext and pageScope ?
Hi...
Can any one clarify me whats the difference between a context and a scope ?
Ex. whats is difference between pageCOntext and pageScope ?
From the API: A PageContext instance provides access to all the namespaces associated with a JSP page, provides access to several page attributes, as well as a layer above the implementation details.
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/PageContext.html
With regards to Servlets/JSP, there are four "scopes" for storing attributes in: page, request, session and application. When talking about a scope normally refers to just ONE of those namespaces.
People sometimes do use pageContext and pageScope interchangeably because the method call pageContext.setAttribute() sets an attribute into the pageScope. But the pageContext is much more than that.
Hope I haven't confused you too much
Cheers,
evnafets
thanks.. but...
What do you mean by namespaces associated with a JSP page and what are they ?