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 interceptor? And life cycle methods of interceptor?
How you will make available any message resources definitions file to the struts framework environment?
How can we display validation errors on jsp page?
What configuration changes are required to use Tiles in Struts?
Do I have to credit struts on my own website?
Which class of struts is responsible to converts data types from string and vice versa?
What are the steps used to setup dispatch action?
What is discontinuous strut?
What is lookupdispatchaction?
What is difference between actionform and dynaactionform?
What is the purpose of @beforeresult?
What is struts framework?
Explain about the future of struts?
What is the actionform?
What is the difference between requestaware and servletrequestaware interface?