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

Are global variables initialized to zero?

507


How do you reverse a string in java?

574


Why inputstreamreader is used in java?

541


Can we catch more than one exception in a single catch block?

621


Is main a keyword in java?

534






What about anonymous inner classes in java?

559


Does java map allow duplicates?

486


What is ascii format?

546


In how many ways we can do exception handling in java?

569


What is a default constraint?

611


Can we have any code between try and catch blocks?

553


What is constructor and virtual function? Can we call a virtual function in a constructor?

674


when to use ArrayList and when to use HashMap in webApplication.

3877


What are basic data types?

556


Is a char always 1 byte?

501