Re: What is the use of Page context ?

2002-11-17 Thread Dash Sam
pageContext is an object that changes for each .jsp page.  Each .jsp
page allocates a pageContext as one of the first things it does.

So if you put an attribute in there, it will last until the page ends,
either because the response has gone back to the browser or you have
done a jso:forward .../

It also has some getters for getting the request, response, etc
objects.

It also has some useful methods for convenience.

Check out the Javadoc.

-- Sam

__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



What is the use of Page context ?

2002-11-15 Thread Gopinath D
Hi all,


Could u plz tell me what the page context in JSP is. I have seen
some questions in many interviews.

I was not able to find out this help me...

Thanks in advance.

Regards,
Gopi.

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

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com



Re: What is the use of Page context ?

2002-11-15 Thread Padhu Vinirs
PageContext is a wrapper around all the implicit objects ( session,
context, out etc ). It is used to store/remove/change attributes in all
the scopes. And all tag handlers get to the implicit objects using only
this object.

From the spec:

The PageContext provides a number of facilities to the page/component author
and page implementor, including:
•a single API to manage the various scoped namespaces
•a number of convenience API’s to access various public objects
•a mechanism to obtain the JspWriter for output
•a mechanism to manage session usage by the page
•a mechanism to expose page directive attributes to the scripting
environment
•mechanisms to forward or include the current request to other active
components
in the application
•a mechanism to handle errorpage exception processing


-- padhu




Gopinath D wrote:


Hi all,


Could u plz tell me what the page context in JSP is. I have seen
some questions in many interviews.

I was not able to find out this help me...

Thanks in advance.

Regards,
Gopi.

===

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

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com



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

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com