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 ServletContext and
ServletConfig?

Answer Posted / devarathnam chinnakotla. banga

Hi,

ServletContext: ServletContext is a view of webapplication,
there will be only one servletcontext for one
webapplication. It acts as shared memoty area, all the
components of a webapplication can access the data from
servletcontext object.

ServletConfig: ServletConfig will be specific to each
servlet. If your webapplication contains 20 servlets then,
there will be 20 servletsconfig objects.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need struts?

931


What configuration changes are required to use Tiles in Struts?

1018


How can forward action be used to restrict a strut application to mvc?

983


What is the purpose of @keyproperty annotation annotation?

981


Can you explain value stack?

926


What configurations are stored in struts configuration file ?

999


What is s token?

993


What do you mean by dynaactionform?

981


What is struts in j2ee?

946


Why is it called struts?

960


What is difference between spring and struts?

948


What is the purpose of @emailvalidator annotation?

1020


What is struts-default package and what are it’s benefits?

1108


What is dispatchaction?

1107


How is a lookup dispatch action created?

1001