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
How many arguments can a method have java?
What is a finally block?
What are the differences between heap and stack memory?
What's a method in programming?
Is ++ operator is thread safe in java?
What are the basics of core java?
Differentiate between class and structure.
What is command line used for?
What is a jagged array in java?
Where is jre installed?
What is the use of object and class classes?
What is the most important feature of java? What is an interface?
Which list is sorted in java?
What are the types of collections in java?
Explain about wait() method?