What is the difference between pageContext and page
implicit objects in jsp?
Answer Posted / pj
PageContext: This is used to access page attributes and
also to access all the namespaces associated with a JSP
page. It provides a single API to manage the various scoped
attributes.
PageContext also provides access to several page attributes
like including some static or dynamic resource.
The object PageContext is written:
Javax.servlet.jsp.pagecontext
Page: The Page object denotes the JSP page, used for calling
any instance of a Page's servlet. It has page scope. First
type cast the servlet before accessing any method of the
servlet through the page.
The Page object is written: Java.lang.Object
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
How do you write a scanner class in java?
What is a constructor, constructor overloading in java?
When we serialize an object does the serialization mechanism saves its references too?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
What is the format specifier?
What is type safety in java?
what do you mean by stream pipelining in java 8? Explain
Is singleton a bad practice?
what is recursion in java
What is string data type?
What is balanced tree in java?
How can you write a loop indefinitely in java programming?
What are the principle concepts of oops?
Is a method a function?
What is var keyword ?