what is the difference between page and pageContext
implicit variables
Answer Posted / rajesh rakam
Page:
The implicit variable page is of class java.lang.Object and
it refers to instance of generated servlet. It is declared as
Object page=this
<%= ((Servlet)page).getServletInfo() %> is valid
pageContext:
pageContext variable is of type
javax.servlet.jsp.PageContext. The PageContext class is the
abstract class and JSP engine vendor provides its concrete
subclass.
->Store reference to implicit objects,
->Provide method to get and set attributes in different scopes.
->Provide convenience methods for transferring request to
other resources in web application.
PageContext.forward(�other.jsp�);
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is struts and why it is used?
What does apache struts do?
What is struts and springs in java?
What is filter dispatcher in struts?
Is struts efficient?
How does struts2 token work?
How we can controlled duplicate form submission in struts?
Can you explain value stack?
What is the purpose of struts.properties in struct2?
What is the difference between validation.xml and validator-rules.xml files in struts?
What is the design role played by struts?
How is token generated?
What is http redirect?
What are interceptors in struts 2?
What is switchaction?