File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Regarding Implicit Objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Regarding Implicit Objects" Watch "Regarding Implicit Objects" New topic

Regarding Implicit Objects

yekkala krishna
Ranch Hand

Joined: Mar 04, 2007
Posts: 105
what is the difference between page and pagecontext implicit objects in JSP ?
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
The implicit page variable is simply a "this" reference to the JSP instance that is being invoked by the servlet container. This is an object provided by the container that fulfils the JspPage interface, and normally the HttpJspPage interface too. These interfaces are similar to the Servlet and HttpServlet interfaces and implement JSP lifecycle methods jspInit, jspDestroy and _jspService(HttpServletRequest, HttpServletResponse).

The JSP pageContext variable refers to an object that implements the PageContext interface. The page context has convenience methods to access common Web application variables, including the servlet configuration and context objects, request and response objects, request attributes, and session object.

RAGHU<br /> <br />"When the going gets tough, the tough get going"
I agree. Here's the link:
subject: Regarding Implicit Objects
It's not a secret anymore!