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

How many decimal digits is 64 bit?

528


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

641


How many types of methods are there in java?

523


Is there is any difference between a scrollbar and a scrollpane?

558


Why string objects are immutable in java?

563






What is meant by anonymous class?

587


What causes memory leak in java?

472


Can you use this() and super() both in a constructor?

520


What is use of functional interface in java 8? Explain

561


Explain about map interface in java?

583


Can singleton class be cloned?

557


What are the drawbacks of singleton class?

526


Discuss about garbage collector in Java.

637


What is Enum in Java?

677


why java does not support unsigned keyword?

4241