Hi, Using pageContext object you can set attribute in one of the scopes page, request, session or application. These scopes are defined as constants in PageContext class and you can pass the scope to the method of setAttribute() to specify in which scope you need to bind the value.
Hi, Your 2nd question has already been answered by Rizwan, so i'll answer your 1st question. The page object in JSP refers to the servlet that is generated after translation of a JSP i.e. it is same as the "this" keyword used in a Java file, while pageContext is a page scope object similar to request,session and application. So it is the pageContext object which refers to the page scope and not the page object as we might tend to think.