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 are the different kinds of actions in struts?

790


What are interceptors in struts 2?

766


Why aren’t the struts tags maintained as part of the jakarta taglibs project ?

733


How many servlet controllers are used in a Struts Application?

816


How you will display validation fail errors on jsp page?

721


What are the loop holes of struts?

775


What do you know about validation plugin ?

696


What are the two types of validations supported by validator framework?

784


Can we integrate struts with spring?

791


What are the applications of struts?

704


What is apache struts used for?

691


Give the details of xml files used in validator framework?

785


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

887


What are the cons of struts 2?

758


What do you mean by dynaactionform?

722