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


Please Help Members By Posting Answers For Below Questions

What are static initalizers in java ?

756


What is complexity in java?

728


What is the concatenation operator in java?

800


Implement two stacks using a single array.

765


What is string example?

793


What is the gregoriancalendar class in java programming?

762


How do you download stubs from Remote place?

1521


Explain different types of wrapper classes in java?

784


Can java list be null?

741


What are the rules for naming an array?

708


What is map java?

720


Is empty set an element of empty set?

817


When do we need to use internal iteration? When do we need to use external iteration?

819


What is a databasemetadata?

710


What does escaping a character mean?

715