Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

How do you create a first line indent?

0 Answers  


Why multiple inheritance is not supported by java?

0 Answers  


Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

0 Answers  


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

0 Answers  


What is method overloading with type promotion?

0 Answers  






what is the main difference between string and stringbuffer? can you explain it with program?

2 Answers  


How many types of the indexof method are there for strings?

0 Answers  


What is sorting algorithm in java?

0 Answers  


Is null false in java?

0 Answers  


Which method will get invoked first in a stand alone application?

1 Answers  


Why is java logo a cup of coffee?

0 Answers  


Where is java located?

0 Answers  






Categories