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
Can servlet have a constructor ?
Explain jsessionid and when is it created?
What is the difference between 2 types of servlets?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
What is a web application and what is it’s directory structure?
What is httpservlet and how it is different from genericservlet?
How can we create deadlock situation in servlet?
What do you mean by the servlet chaining?
What is the use of welcome-file-list?
Why servlet is mostly used?
Why jsp is better than servlet?
Whats the advantages using servlets over using CGI?
What is the servlet?
Why servlet is used as controller ? Not JSP? I want complete explation?
What are the uses of servlet and what is servlet chaining?