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 are struts in java?
What is the purpose of form-beans tag in struct-config.xml?
Who makes the struts?
What is ognl?
What is the purpose of @urlvalidator annotation?
What's mvc pattern ?
How do struts work?
What do you mean by dynaactionform?
What are the benefits of Interceptors in Struts2?
How can you create your custom interceptor in struts 2?
How do you find the struts version being used in a project?
What is the use of jsonvalidation?
Are interceptors and filters different?
What is the procedure of operation of a form tag?
what is ACID test for fresh engineers??what is the pattern??