what is the advantage of using Servlets over CGI programming?
Answer Posted / janet
Servlets are only instantiated when the client first
accesses the program. All subsequent accesses are done to
that instance.This keeps the response time of servlets lower
than that of CGI programs, which must be run once per
hit.also because servlet is instantiated only once,all
accesses are put through that one object. This helps in
maintaining objects like internal connection,pooling or user
session tracking and lots of other features.
Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What are the different methods involved in the process of session management in servlets?
What do you mean by the servlet chaining?
Why servlet is used as controller ? Not JSP? I want complete explation?
Write a program to show the functionality of servlets.
Why the concept of single thread model interface is used?
What is new in ServletRequest interface ? (Servlet 2.4)
How to get the actual path of servlet in server?
Difference between java beans & servlets?
What is the purpose of inter-servlet communication?
What is the directory structure of web application?
What are the differences between the servletconfig interface and the servletcontext interface?
Can you create a deadlock condition on a servlet?
What are all the advantages of servlet over cgi?
Explain the concept of ssi ?
What is the need of session tracking in web application?