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
What happens if we don’t override run method ?
Can we override protected method in java?
What is a buffer in computer?
Explain the difference between call by refrence and call by value?
What is difference between local variable and global variable?
Variable of the boolean type is automatically initialized as?
What is navigable map in java?
What are the two types of java?
How do you sort in ascending order in java?
What carriage return means?
How does a for loop work java?
What is the static import?
What are the principle concepts of oops?
How many bits is a boolean?
What is difference between hashset and hashmap in java?