can we create more than ServletContext and ServletConfig in
your application
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
Explain the working of service() method of a servlet.
What are setComment and getComment methods in Cookies?
How do u authorize and authenticate without <auth> of web.xml
What is the workflow of a servlet?
How to pass a requrest object of one servlet as a request object to another servlet?
What is servlet and its types?
What is load-on-startup in servlet?
What are the functions of an intercepting filter?
what is the difference b/w DispatchAction and LookUpDispatchAction?
1 Answers Deloitte, iGate, Tech Mahindra,
please give url to get orinal software for I-net crystal clear java report tools?
What is the difference between sendredirect() and forward() in a servlet?
Servlet Chaining? How do you do the Filtering in Servlets?