what is the difference between ServletContext and
ServletConfig
Answer Posted / sreenu bassha
ServletContext:ServletContext interface contains basic
methods to find the path information, accessing other
servlets,etc.
ServletConfig:ServletConfig interface contains basic
methods to get the initialization parameters and
servletContext object.
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Who is responsible for writing a constructor?
What is the difference between encodeRedirectUrl and encodeURL?
What are the features added in Servlet 2.5?
What is the life cycle of a servlet?
What are the jobs performed by servlets?
Why HttpServlet class is declared abstract?
What is Request Dispatcher?
Can we use the constructor, instead of init(), to initialize servlet?
How native code can be used in a servlet?
Differentiate between the print writer and servlet output stream?
When a servlet accepts a call from a client, it receives two objects. What are they?
What is a web container and what is its responsibility?
What is Servlet API used for connecting database?
How does Cookies work in Servlets?
Explain the war file?