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 bundled validators?
What is actionmapping?
What is the role of action class in struts?
How long do struts last?
What is the use of lookupdispatchaction?
What is the front controller in struts2?
In which method of action class the business logic is executed?
Can I have html form property without associated getter and setter formbean methods?
Explain how to work with error tags?
What are the loop holes of struts?
Which design pattern is implemented by Struts2 interceptors?
What is struts in java with example?
What is struts xml?
What is struts?
Explain about logic match tag?