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
What does the “final” keyword mean in front of a variable? A method? A class?
What is a dynamic array in java?
What are the three parts of a lambda expression? What is the type of lambda expression?
What is a nullable field?
What is the static field modifier?
How do you add an element to a set in java?
What are the default and parameterized constructors?
Why does java doesnt suuport unsigned values?
How to instantiate member inner class?
How do you reverse a string in java without using string buffer?
What is boolean false?
Explain java thread life cycle.
What is scanner in java?
What do you understand by copy constructor in java?
Can an unreferenced object be referenced again?