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...


can we create more than ServletContext and ServletConfig in
your application

Answers were Sorted based on User's Feedback



can we create more than ServletContext and ServletConfig in your application..

Answer / narendhersharma

ServletContext which is managed by webcontainer, For the
whole web application only one servletcontext will be
there...

In ServletConfig , this is also managed by webcontainer,
for every request object one servletconfig object will be
there..

Is This Answer Correct ?    19 Yes 4 No

can we create more than ServletContext and ServletConfig in your application..

Answer / sunstar

Servlet Context is used per Web apllication so we can't use
more than one Context,Servlet Config is per servlet or per
Jsp so you can use the more than one Config.....:-)

Is This Answer Correct ?    10 Yes 0 No

can we create more than ServletContext and ServletConfig in your application..

Answer / naresh

We can not have more than one servletContext in a web
application, but we can have more than one servletConfig
provided there is more than one servlet in the web
application...

Is This Answer Correct ?    10 Yes 0 No

can we create more than ServletContext and ServletConfig in your application..

Answer / ravi ranjan kumar rajnish

No, In case of ServletContext Bcoz there is one
ServletContext is for one for whole application.
But yes in case of ServletConfig, bcoz servletconfig is
servlet specific so it can more than one

Is This Answer Correct ?    9 Yes 4 No

can we create more than ServletContext and ServletConfig in your application..

Answer / vishal kumar

yes we can create more than one servletcontext for an
application.in case of distributed application,
application's part are deployed on different application
server so in this case every part of application has
different servlet context.so as a whole application consist
many servlet contect.

Is This Answer Correct ?    3 Yes 2 No

can we create more than ServletContext and ServletConfig in your application..

Answer / ravikiran.chd

no one servlet context per web application we can generate
multiple servlet config objects

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More Servlets Interview Questions

What is string tokenizer?

0 Answers  


what are the CGI Programs?

5 Answers  


Can we override destroy method in servlet?

0 Answers  


What is the default http method in the servlet?

0 Answers  


what is SSL?

3 Answers  


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

0 Answers  


Explain the lifecycle of a servlet?

0 Answers  


Explain in brief the directory structure of a web application?

0 Answers  


What is the life cycle of a servlet?

1 Answers  


What is a web application and what is it’s directory structure?

0 Answers  


Can we define constructor in Servlet class?

10 Answers   Accenture, Yugma,


Why do we need a constructor in a servlet if we use the init method?

0 Answers  


Categories