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
How do you load an image in a Servlet?
What's the use of servletcontext?
What is session?
What are different ways for servlet authentication?
Should I override the service() method?
What are the functions of an intercepting filter?
How can I send user authentication information while making URL Connection?
How to find whether a parameter exists in the request object?
What are sessions in servlets?
Which interface must be implemented by all servlets?
How we can call a jsp from the servlet?
Can we use threads in Servlets?
What is the purpose of dispatcherservlet properties?
If a servlet is not properly initialized, what exception may be thrown?
What is meant by Servlet? What are the parameters of service method?