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

What java is used for?

654


What is Enum in Java?

677


How variables are stored in memory?

533


How do listeners work?

503


What is class variable java?

581






What about anonymous inner classes in java?

559


What is the difference between checked exception and unchecked exception?

520


What is the benefit of using enum to declare a constant?

653


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

589


Is 0 an irrational number?

596


What is the diffrence between inner class and nested class?

558


What is a classloader in java?

534


What are different types of references?

526


How do you sort a string in java?

532


In a class implementing an interface, can we change the value of any variable defined in the interface?

553