1. Servlets are cross-platform:
          Because servlets are written in Java, they can be used on multiple
platforms without worrying about compatibility issues or recompilation.

2. Servlets are fast:
  Standard CGI programs are slow because a new process must start up and run
for every client request. For example: if a Perl cgi search engine is being
used by 25 users, 25 separate version of the program have to be loaded into
memory and executed... that's a lot of overhead.
  Java servlets are fast because they are persistent. The same search engine
as a servlet would load only once and then service all 25 clients using
multiple threads. It would then stay loaded in memory and wait for more
requests instead of shutting down.

3. Servlets are elegant:
  Because Java was created from the start to be object oriented, programs
written in that language tend be organized more effectively into easily
manageable parts. This makes servlets easier to maintain and understand.

4. Servlets are secure:
  Servlets are run in the Java security sandbox so can be insulated from
disrupting the operating system or breaching security. Additionally, many
security holes in traditional CGI languages result from the those languages
being weakly typed. Java's strong typing helps to ensure fewer accidental
security mistakes.

from http://www.CoolServlets.com

Jacky

-----Original Message-----
发件人: Peter C. Landis <[EMAIL PROTECTED]>
收件人: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
日期: 1999年6月20日 9:27
主题: Servlets vs CGI


>        What are the main differences and advantages of Servlets and CGI
>scripts?
>
> _________________
>|U  U             |           Peter Landis
>|U  U W W W       |  University of Wisconsin Milwaukee
>|UUUU W W W MMMMM |          Computer Science
>|     WWWWW M M M |
>|           M M M |        [EMAIL PROTECTED]
>|                 |         [EMAIL PROTECTED]
>|COMPUTER SCIENCE |  http://www.csd.uwm.edu/~plandis
> -----------------
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to