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's the architecture of a servlet package?
How forward () method is different from send redirect () method?
What is the difference between encodeRedirectUrl and encodeURL?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
What is the inter-servlet communication?
What is httpservlet and how it is different from genericservlet?
Why servlet is used as controller ? Not JSP? I want complete explation?
Explain in brief the directory structure of a web application?
What if you need to span your transaction across multiple servlet invocations?
What is servletconfig?
What is called Session Tracking?
What is MIME Type?
How to get the path of servlet in the server?
What are the exceptions thrown by servlets? Why?
What are its drawbacks of cgi?