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 container struts2?
What is xml based validation in struts2?
What is interceptor struts2?
What is the use of struts config xml file?
How do u provide security to ur project?(Banking domain project)
Which components are available using actioncontext map?
Explain about logic match tag?
What is the differences between struts1 and struts2?
How can we display validation errors on jsp page?
What is the purpose of @results annotation?
Where can I get a copy of struts?
Can we handle exceptions in Struts programmatically?
Is Struts Framework part of J2EE?
How can we upload files in Struts2 application?
What is the design role played by struts?