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

What is static class

708


What is int lol?

724


What is the full meaning of java?

627


How many bits is a float?

644


Can singleton class be serialized?

617






Which keyword specify that a variable is effectively final ?

667


What technique is carried out to find out if a particular string is empty?

682


Why main method is static in java?

702


Explain access specifiers?

745


Explain the importance of join() method in thread class?

733


How many types of voids are there?

628


How many inner classes can a class have?

668


What is the syntax and characteristics of a lambda expression?

669


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1622


What does it mean to be immutable?

648