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
Explain the role of dispatcherservlet and contextloaderlistener.
What is servlet and its advantages?
What is the use of request dispatcher interface?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What is a cookie What is the difference between session and cookie
How to get the actual path of servlet in server?
How to upload a file to the server using servlet?
How do you run a servlet?
What is a servlet?
Write all the phases defined in servlet life cycle?
Why are servlets used?
What is the use of servletconfig interface?
What is the difference between sendredirect() and forward() in a servlet?
How to make sure a servlet is loaded at the application startup?
What is meant by session? Tell me something about httpsession class?