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?

Answers were Sorted based on User's Feedback



what is the difference between ServletContext and ServletConfig?..

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

what is the difference between ServletContext and ServletConfig?..

Answer / sunil kumar- vizag

Servlet Context: Servlet Context defines a set of methods
that a servlet uses to communicate with its servlet container.

Servlet Config: A servlet configuration object used by a
servlet container passes information to a servlet during
initialization.

Is This Answer Correct ?    7 Yes 2 No

what is the difference between ServletContext and ServletConfig?..

Answer / raghu

Servlet Context -> It is one for the web application.
Servlet Config -> It is one for the Servlet.

Is This Answer Correct ?    5 Yes 1 No

what is the difference between ServletContext and ServletConfig?..

Answer / durairaj

ServletContext represents the unique configuration of particular webapplication in the WebContainer.The parameters set in the ServletContext can be retrieved universally in the particular webapplication

ServletConfig represents the unique configuration of a particular Servlet in the Webapplication.The parameters set in the ServletConfig can be retrieved universally in the particular Servlet class only(not outside)

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Struts Interview Questions

How many action classes can be used in struts application?

0 Answers  


What is discontinuous strut?

0 Answers  


Why are frameworks used?

0 Answers  


Explain about token feature in struts?

0 Answers   Tech Mahindra,


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

0 Answers  


If we close the browser,when the specific user session is active.Again if we open browse how to retrive it same user??what code i have to da???

5 Answers   TCS,


why do we typecast ActionForm into our plain java bean class in Action class? What is the reason?

4 Answers  


Can we integrate struts with spring?

0 Answers  


What is struts validator framework?

0 Answers  


What is token used for?

0 Answers  


What is action chaining ?

0 Answers  


State the procedure for using forward attribute of link tag’s.

0 Answers  


Categories