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
What are the benefits of using servlet over cgi?
Explain the difference between servletconfig and servletcontext in servlet?
What is the process to implement doget and dopost methods?
What is the difference between using getSession(true) and getSession(false) methods?
What is the difference between Server and Container?
How do we go with database connection and log4j integration in servlet?
Why doesn’t a servlet include main()? How does it work?
Which event is fired at the time of project deployment and undeployment?
What is the inter-servlet communication?
How can the session in servlet be destroyed?
Explain the difference between get and post method in servlet?
Who is responsible to create the object of servlet?
What is the difference between Difference between doGet() and doPost()?
What is ServletConfig object?
Write a program to show the functionality of servlets.