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 if we pass negative value in load-on-startup?
What are the uses of servlet and what is servlet chaining?
What is the difference between forward () and sendredirect () functions in servlet? Explain
Which protocol will be used by browser and servlet to communicate
What do you mean by httpservlet and how it is different from the genericservlet?
What do you mean by request dispatcher in servlet?
Explain the role of dispatcherservlet and contextloaderlistener.
How do you create a cookie using servlet?
What is http servlet? Explain with the help of an example.
How can we include static files in the jsp page?
What is the use of httpservletrequestwrapper?
Can filter be used as request or response?
What is java servlet?
What is the major difference between context parameter and context attribute?
Why is httpservlet declared abstract?