what is the difference between pagecontext and
servletcontext?

Answer Posted / mahesh

PageContext is used to store the attributes as Objects like
key&value pairs in JSP .Its mostly used in Beans concept.


ServletContext is the Context for the total web application
, mean it provides the runtime environment for all the
servlets .


Bye

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

560


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

1645


Explain static nested classes ?

576


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

536


Can keyword be used as identifier?

537






What is meant by call by reference?

494


Why heap memory is called heap?

576


Can we use catch statement for checked exceptions?

497


What is data type in java?

479


What are the restrictions imposed by a Security Manager on Applets?.

2051


Explain Basics of OOP Language in java

573


What happens if I remove static from main method?

509


Can you access the private method from outside the class?

492


what is instanceof operator used in java?

577


Why unicode is important?

456