Is there any differance b/w getting servlet context from
servlet config and session? if yes then what is that?
Answer Posted / nisha
Servlet config is one per servlet and servlet context is one for
the whole webapplication.
Servlet config is used to pass deploy time information to servlet
where servlet context can be used to get information about the
container,server.
| Is This Answer Correct ? | 13 Yes | 4 No |
Post New Answer View All Answers
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
How do you find out what client machine is making a request to your servlet
Explain the difference between servlet and cgi?
How can we refresh automatically when new data has entered the database?
What is servlet looping or chaining?
Whether thread can be used in servlets?
Where do you define dispatcherservlet?
What is the difference between a generic servlet and http servlet?
How will you pass values from HTML page to the servlet?
How to get the actual path of servlet in server?
What is the functionality of actionservlet and requestprocessor?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What are the exceptions thrown by servlets? Why?
How do cookies work in servlets?
List out difference between a JavaBean from a Servlet?