|
Servlets offer several advantages over CGI- Better performance – Servlets execute within the address space of a web server.
-
Separate process – They create a separate process to handle each client request.
-
Platform independent – Servlets are platform – independent, because they are written in Java.
-
Security – More secure.
- Functionality – The full functionality of the Java class libraries is available to a Servlet. It can communicate with applets, databases, or other software using sockets or RMI mechanisms.
|