What are the advantages using servlets than using CGI?

Servlets provide a way to generate dynamic documents that is both easier to write and faster to run. It is efficient, convenient, powerful, portable, secure and inexpensive. Servlets also address the problem of doing server-side programming with platform-specific APIs. They are developed with Java Servlet API, a standard Java extension.

Showing Answers 1 - 1 of 1 Answers

 CGI scripts are complex. Servelts have serveral advantage over CGI like servlets are platform independent. and we can take advantage of all java features in servlets. Multithreading support is there in servlets. and I think in CGI script for each request different object is created that is overhead. which is not the case in servlets. 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions