what is the advantage of using Servlets over CGI programming?
Answer Posted / ravat
There is only one main difference between CGI and Servlet that CGI is not that much efficient as servlets ,because Wen each time request cames to CGI it ll start from first i.e loading,instantiation and ll consume more time but in the case of Servlet only once server is loaded and instance is created and it is reused to other request and wenever the new request cames just it ll make use of same object
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What are the supporting protocol by HttpServlet ?
Differentiate between the print writer and servlet output stream?
Write a program to show the functionality of servlets.
How do servlets work?
What are the advantages of cookies?
What's the difference between authentication and authorization?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
Can we override destroy method in servlet?
What is a web application and what is it’s directory structure?
What are the two important api's in for servlets?
What do you mean by request dispatcher in servlet? Also explain its methods.
What is servlet container. how it works?
How many servlet objects are created?
Is it good idea to create servlet constructor?
Can filter be used as request or response?