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 / guest

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
Consider
<%= page.getServletInfo() %> will give Error
getServletInfo() is not a method of java.lang.Object
<%= ((Servlet)page).getServletInfo() %> is valid

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 ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between session scope and request scope when saving formbean ?

992


What is the purpose of @conversion?

1155


Why do the struts tags provide for so little formatting?

969


Why use struts framework in java?

1094


Which components are available using actioncontext map?

1172


Who wrote struts?

959


What’s the difference between struts and turbine?

1202


What is the purpose of @typeconversion annotation annotation?

977


State an example of struts configuration file as an action parameter for action servlet.

1007


What does apache struts do?

916


What are the main classes which are used in struts application?

982


What is the purpose of @key?

1054


Do we need to pay the struts if being used in commercial purpose?

1004


Explain about the tag?

1108


Describe validate() and reset() methods.

1083