what is the difference between pagecontext and
servletcontext?

Answer Posted / munesh yadav

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


ServletContext provides runtime environment for all the
servlets in web application.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 ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we store variables in local blocks?

789


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

508


placement papaers of spring computing technology

1026


How do you decide when to use arraylist and linkedlist?

535


Is array a class in java?

505






What happens if we override only equals?

582


What are the differences between abstract class and interface?

514


How is java created?

536


What is abstraction in java?

619


Write a program to reverse a number in java?

564


How concurrent hashmap works?

613


Is string passed by reference in java?

548


Explain 5 io best practices?

597


How do you sort in descending order in java using collections sort?

499


Why does java not support pointers?

554