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(&#65533;other.jsp&#65533;);

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is apache struts framework?

730


Can you explain custom tag?

781


What are the steps of struts installation?

799


What is the purpose of @conversion annotation annotation?

918


How do you convert struts to springs?

798


What is the purpose of struts.xml in struct2?

875


What is struts in j2ee?

740


What are the core classes of struts?

811


Explain struts?

777


Which class of struts is responsible to converts data types from string and vice versa?

900


What is actioncontext?

755


What is s token?

755


What is controller in struts2?

718


What is interceptor in Struts2?

754


Why we use struts in java?

717