Is there any differance b/w getting servlet context from
servlet config and session? if yes then what is that?
Answer Posted / thennavan.m
YES.
ServletContext(): To communicate with the Servlet Container.
Eg: What server to running on the
Environment.Then when sever is
started,who is login the server all
the information to store the
"Event log"file ie log4j.
ServletConfig(): Pass the configuration information to the
Server to the servlet.
Session(): Session is a Object to track
the user interaction with
the web application across multiple
HttpSession.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do we use sendredirect() method?
When jsessionid is created?
What is Client-Server Computing?
Why do we have servlet wrapper classes?
What is servlet and its use?
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?
What is the difference between forward () and sendredirect () functions in servlet? Explain
Why the concept of single thread model interface is used?
What do you mean by servlet?
List out the difference between ServletConfig and ServletContext?
What is the difference between the http servlet and generic servlet?
How would you create deadlock on your servlet?
What is URL Encoding?
What is the difference between the include() and forward() methods?
Write a servlet to upload file on server.