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
Give an example where struts tiles may be used?
What is the purpose of @urlvalidator annotation?
What are construction struts?
Explain the core end goal while using java struts?
What is difference between lookupdispatchaction and dispatchaction?
What is struts framework?
What are the benefits of Struts framework?
What is struts actionmapping?
Can you give an overview of how a struts application flows?
What is the purpose of action-mappings tag in struct-config.xml?
What is the purpose of form-be tag in struct-config.xml?
What configuration changes are required to use Tiles in Struts?
What is the procedure of operation of a form tag?
What is the role of action class?
Explain about struts dispatch action?