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 struts in java?

502


What is the purpose of form-beans tag in struct-config.xml?

547


Who makes the struts?

543


What is ognl?

598


What is the purpose of @urlvalidator annotation?

555






What's mvc pattern ?

584


How do struts work?

518


What do you mean by dynaactionform?

547


What are the benefits of Interceptors in Struts2?

646


How can you create your custom interceptor in struts 2?

537


How do you find the struts version being used in a project?

514


What is the use of jsonvalidation?

593


Are interceptors and filters different?

543


What is the procedure of operation of a form tag?

550


what is ACID test for fresh engineers??what is the pattern??

2365