what is the difference between pagecontext and
servletcontext?

Answers were Sorted based on User's Feedback



what is the difference between pagecontext and servletcontext?..

Answer / ram

A PageContext instance provides access to all the
namespaces associated with a JSP page, provides access to
several page attributes, as well as a layer above the
implementation details.

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 ?    16 Yes 1 No

what is the difference between pagecontext and servletcontext?..

Answer / mahesh

PageContext is used to store the attributes as Objects like
key&value pairs in JSP .Its mostly used in Beans concept.


ServletContext is the Context for the total web application
, mean it provides the runtime environment for all the
servlets .


Bye

Is This Answer Correct ?    10 Yes 2 No

what is the difference between pagecontext and servletcontext?..

Answer / 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

what is the difference between pagecontext and servletcontext?..

Answer / guru

servlet context-gives information about container.
page context-gives info about the request.

Is This Answer Correct ?    2 Yes 1 No

what is the difference between pagecontext and servletcontext?..

Answer / guest

pagecontext is used for urlrequesting and servlecontext is
used for particularServlet

Is This Answer Correct ?    2 Yes 11 No

Post New Answer

More Core Java Interview Questions

Which one of the following suits the description of a string better: derived or primitive?

0 Answers  


What are the actions that can occur when a thread enters blocked state?

0 Answers  


Explain polymorphism citing an example.

0 Answers   Amazon,


What is the best definition for data?

0 Answers  


class A{ class B{ } } in which name u save the file,its the program compile?

6 Answers   HCL,






What does || mean in code?

0 Answers  


What is file class and what is its purpose?

1 Answers  


What is object

6 Answers  


how many types of cloning?

4 Answers   Mobily,


Can an unreachable object become reachable again?

3 Answers   DELL,


I have a class which is abstract which contains only the abstract methods. This is similar to an interface. Then, if i have given a choice to choose one of them. Which one i have to choose and why?

4 Answers  


What is the size of a string in java?

0 Answers  


Categories