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 the different kinds of actions in struts?
What are interceptors in struts 2?
Why aren’t the struts tags maintained as part of the jakarta taglibs project ?
How many servlet controllers are used in a Struts Application?
How you will display validation fail errors on jsp page?
What are the loop holes of struts?
What do you know about validation plugin ?
What are the two types of validations supported by validator framework?
Can we integrate struts with spring?
What are the applications of struts?
What is apache struts used for?
Give the details of xml files used in validator framework?
Which class of struts is responsible to converts data types from string and vice versa?
What are the cons of struts 2?
What do you mean by dynaactionform?