what is the difference between pagecontext and
servletcontext?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / guru
servlet context-gives information about container.
page context-gives info about the request.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / guest
pagecontext is used for urlrequesting and servlecontext is
used for particularServlet
| Is This Answer Correct ? | 2 Yes | 11 No |
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
Is it possible to write a regular expression to check if string is a number?
WHAT IS MARKER INTERFACE,AND NO METHODS IS NOT THERE ON THAT INTERFACE THEN WHY WE USED IN JAVA?
What are the benefits of operations in java?
What is the difference between method overriding and overloading?
Why do we need to override equals() and hascode() method of object class?
when we create singleton design then we create private constructtor..so how JVM take private constructor to make object..but it's private..
Where are register variables stored?
Explain access specifiers?
0 Answers Thomson Reuters, Virtusa,
Difference between abstract and concrete class ?
How to perform quicksort in java?
How do you end a program?