What is the difference between pagecontext and application in jsp




















Pagecontext is used to initilize all implicit objects for example :- page attributes, access to the request, response and session objects, as well as the JspWriter referenced by out. Hi Ravikiran Thanks for your quick response.

Hi shailendra Thnks for your response, but iam asking what is the difference between page and pagecontext implicit objects in jsp?

Page Implicit Object : 8 type of Implicit object are genreted when JSP file is converted into Servlet 8 type of Implicit Object are 1 Page 2 pageContext 3 application 4 session 5 exception 6 config 7 request 8 responce pagecontext is type of implicit Object in pageContext two method is available 1 include 2 forward it is equvaalect in servlet to RequestDispatcher. Post New Answer. Why should we create an object? Posted May am Shruthi GM. Add a Solution. Top Rated Most Recent.

Accept Solution Reject Solution. Hello Shruthi, PageContext is used for storing and retrieving page-related information and sharing objects within the same translation unit and same request. It is also used as a convenience class that maintains a table of all the other implicit objects.

For example Java. Copy Code. Posted May am Prasad Khandekar. Posted May am IpsitaMishra. Add your solution here. OK Paste as. R Programming. React Native. Python Design Patterns. Python Pillow. Python Turtle. Verbal Ability. Interview Questions. Company Questions. Email Required, but never shown. The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta. Now live: A fully responsive profile.

Linked 2. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled.



0コメント

  • 1000 / 1000