Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Give an example where struts tiles may be used?

1012


What is the purpose of @urlvalidator annotation?

992


What are construction struts?

919


Explain the core end goal while using java struts?

944


What is difference between lookupdispatchaction and dispatchaction?

1117


What is struts framework?

984


What are the benefits of Struts framework?

1002


What is struts actionmapping?

945


Can you give an overview of how a struts application flows?

952


What is the purpose of action-mappings tag in struct-config.xml?

961


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

962


What configuration changes are required to use Tiles in Struts?

1016


What is the procedure of operation of a form tag?

962


What is the role of action class?

1040


Explain about struts dispatch action?

994