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 decimal digits is 64 bit?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
How many types of methods are there in java?
Is there is any difference between a scrollbar and a scrollpane?
Why string objects are immutable in java?
What is meant by anonymous class?
What causes memory leak in java?
Can you use this() and super() both in a constructor?
What is use of functional interface in java 8? Explain
Explain about map interface in java?
Can singleton class be cloned?
What are the drawbacks of singleton class?
Discuss about garbage collector in Java.
What is Enum in Java?
why java does not support unsigned keyword?