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 ServletContext() and what is its use?

Answer Posted / ranjit

as soon as the java web application is
deployed into web container ,the first
object that container create is
servletcontext
This object is only one per web application
Every web component of web application
share this unique object

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

1103


Explain the lifecycle of a servlet?

975


how many jsp scripting elements are there and what are those?

1019


How will two or three servlets interact or communicate with each other?

1450


What is url encoding and url decoding

1154


The code in a finally clause will never fail to execute, right?

1085


What is the difference in between the httpservlet and generic servlet?

1122


Can you refresh servlet in client and server-side automatically?

1081


How the JSP file will be executed on the Server side?

1141


Why are servlets used?

1039


What is servlet mapping?

1025


What's the servlet interface?

1084


What is servlet attributes and their scope?

1066


What is the use of java servlet api?

1035


What do you mean by scope object and what are its types?

1080