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
Can we store variables in local blocks?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
placement papaers of spring computing technology
How do you decide when to use arraylist and linkedlist?
Is array a class in java?
What happens if we override only equals?
What are the differences between abstract class and interface?
How is java created?
What is abstraction in java?
Write a program to reverse a number in java?
How concurrent hashmap works?
Is string passed by reference in java?
Explain 5 io best practices?
How do you sort in descending order in java using collections sort?
Why does java not support pointers?