what is the difference between pagecontext and
servletcontext?
Answer Posted / 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 |
Post New Answer View All Answers
Can we have two main methods in a java class?
What is the use of singleton?
How many threads can I run java?
What is the primary benefit of encapsulation?
What is difference between path and classpath in java?
What is meant by method overriding?
What is the maximum size of array in java?
Explain the private protected method modifier?
Can a method be overloaded based on different return type but same argument type?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
Why wait and notify methods are declared in object class?
what is the swingutilities.invokelater(runnable) method for? : Java thread
What is the purpose of the system class in java programming?
Give me an example of array and linked list? Where they can be used?
If a variable is declared as private, where may the variable be accessed?