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 apache struts framework?
Can you explain custom tag?
What are the steps of struts installation?
What is the purpose of @conversion annotation annotation?
How do you convert struts to springs?
What is the purpose of struts.xml in struct2?
What is struts in j2ee?
What are the core classes of struts?
Explain struts?
Which class of struts is responsible to converts data types from string and vice versa?
What is actioncontext?
What is s token?
What is controller in struts2?
What is interceptor in Struts2?
Why we use struts in java?