what is the difference between pagecontext and
servletcontext?

Answer Posted / ram

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.

The ServletContext gives information about the container in
which the servlet (or JSP) is running in. Parameters for
this can be setup in the web application deployment
descriptor and there is one ServletContext per web
application.

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Java is Pass by Value or Pass by Reference?

608


Can we override tostring method in java?

517


What are the advantages of defining packages in java?

496


What is the difference between normal report & matrix report?

553


How do you stop a thread in java?

575






Can we declare array without size in java?

534


Can private class be inherited in java?

533


What is an eror in java?

548


What is primitive array?

504


What is the use of System class?

594


Is namespace same as package in java?

528


Is static a singleton?

512


how are methods defined?

541


Why stringbuilder is not thread safe in java?

553


Does java list allow null?

526