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
Is dispatcher servlet a singleton?
Which application server is best for java?
Explain how to improve Servlet Performance?
How to get the server information in a servlet?
Explain the lifecycle of a servlet?
Explain how does JSP handle run-time exceptions?
How we can create war file in servlet?
What do you mean by servlet?
Why do we use sendredirect() method?
What do you mean by request dispatcher in servlet? Also explain its methods.
If my browser does not support cookie, and my server sends a cookie instance what will happen?
Tell us something about servletcontext interface.
What is the process to implement doget and dopost methods?
How to find whether a parameter exists in the request object?
What is a servlet?