can we create more than ServletContext and ServletConfig in
your application
Answer Posted / 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 |
Post New Answer View All Answers
How to read request headers from servlets?
How do you define a servlet?
What do you mean by scope object and what are its types?
What do you mean by filter in servlet?
What is difference between PrintWriter and ServletOutputStream?
Define context initialization parameters.
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What is the use of attribute in servlets?
Who is responsible for writing a constructor?
Write a servlet to upload file on server.
How do servlets work?
How will two or three servlets interact or communicate with each other?
What are the advantages of cookies?
Can you use javascript in servlets?
What are the jobs performed by servlets?