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 is the difference between context parameter and context attribute?
What are the two important api's in for servlets?
Write a program to show the functionality of doget and dopost method?
Explain the working of service() method of a servlet.
How we can call a jsp from the servlet?
How do you define a servlet?
How httpservlet is different from the genericservlet?
How printwriter is different from servletoutputstream?
Differentiate between the web server and application server?
What is the difference between sendredirect() and forward() in a servlet?
What is the use of send redirect () method?
How can you push data from an Applet to a Servlet?
What are the servlet events?
Why doesn’t a servlet include main()?
What are the important functions of filters?