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
How you will display validation fail errors on jsp page?
How do struts work?
How are interceptors and servlet filters different?
How does interceptor work in struts2?
How many action classes can be used in struts application?
How to upload struts file?
What is struts.devmode?
What is struts framework?
What does it cost to replace struts?
What is the use of reset method of ActionForm class?
What are the bundled validators?
What is the purpose of @results?
What are the applications of struts?
What are the conditions for actionform to work correctly?
What is the configuration files used in struts?