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 servlet collaboration?
Why is Servlet so popular?
What exception should be thrown when servlet is not properly initialized?
Explain the methods of request dispatcher in servlet?
Is it good idea to create servlet constructor?
What are the different mode that servlets can be used?
What is a web application and what is it’s directory structure?
Explain the difference between jsp and servlet?
What is servlet mapping?
What do you mean by scope object and what are its types?
Why are servlets used?
What is servlet in simple terms?
Explain the concept of ssi ?
What do you mean by web applications? Explain web application directory arrangement?
Define declaration.