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 is dispatcher servlet?
What is url encoding and url decoding
Why the concept of single thread model interface is used?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What is servlet in simple terms?
What are the types of an http request?
How do I support both get and post from the same servlet?
What are the life cycle methods of a servlet?
What are the uses of servlets?
What is servlet attributes and their scope?
How do we translate jsp?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is the requirement of servlet config and servlet context implemented and how are they implemented?
What is difference between PrintWriter and ServletOutputStream?
What is httpservlet and how it is different from genericservlet?