GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  JSP
Go To First  |  Previous Question  |  Next Question 
 JSP  |  Question 272 of 306    Print  
what is the difference between servletcontext and pagecontext?

  
Total Answers and Comments: 4 Last Update: February 22, 2008     Asked by: kounteya 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: javednjaved
 

ServletContext: Gives the information about the container

PageContext: Gives the information about the Request

Javed.N



Above answer was rated as good by the following members:
phdsong
November 14, 2006 00:08:02   #1  
sanjit kumar koley        

RE: what is the difference between servletcontext and ...

ServletContext: Gives the information about the container. PageContext: Gives the information about the Request


 
Is this answer useful? Yes | No
December 06, 2006 01:08:34   #2  
delindia fathima        

RE: what is the difference between servletcontext and ...

There is only one servletcontext for a web application, where as there is only one pagecontext for a page.servlet context is an interface whereas pagecontext is an abstract class.

A PageContext instance provides access to all the namespaces associated with a JSP page, provides access to several page attributes, as well as a layer above the implementation details. Implicit objects are added the pageContext automatically. whereas servlet context defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.


 
Is this answer useful? Yes | No
January 03, 2007 07:52:47   #3  
venkat soma        

RE: what is the difference between servletcontext and ...

for whole web application, there will be one ServletContext object.

But for every page, there will be its own PageContext object.


 
Is this answer useful? Yes | No
February 22, 2008 12:54:28   #4  
javednjaved Member Since: May 2006   Contribution: 2    

RE: what is the difference between servletcontext and pagecontext?

ServletContext: Gives the information about the container

PageContext: Gives the information about the Request

Javed.N


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape