Numerous differences between them

1.      CGI will create each and every process for a request and cant be
        more efficient whereas servlet create only 1 process and shared

2.      All the variables are returned as string in CGI u need to take
        care in converting them, since servlets written in Java all the
        variables will be returned in the type they specified.

3.      When CGI start processing it is detached from server and cant take
        any advantage of server variables but servlet since resides in
        server can take advantage of this one.  I need somebody to more
        specific in this aspect of server variables as i dont know much
        about that.

4.      Java concept of "write once run anywhere" applies to serlvet too
        u can write a servlet in win95 and can run in any OS as u prefer.

        Hope somebody in the list may add more to this one.

Thanks
Srini


  #-----------------------------------------------------------------------#
  #                                                                       #
  #           "ARISE AWAKE and stop not till the GOAL is reached"         #
  #                                                                       #
  #                     [EMAIL PROTECTED]                          #
  #-----------------------------------------------------------------------#

On Wed, 18 Aug 1999, Vijayendra M Agrawal wrote:

> Hi,
>
> My project is using CGI in Java. I want to know the
> advantages/disadvantages, if I try to use Servlets instead of CGI.
>
> I have worked with Servlets, and I know the basic functionality of Servlet.
> I want to prove that Servlets are much better than CGI. If my project had
> been using some other language instead of Java, I could have gathered many
> advantages, which Java as a language provides, but here, the whole thing
> lies in the comparison between Servlets and CGI.
>
> Any help will be appeciated.
>
> Thanks in advance.
>
> Vijay
>
> ___________________________________________________________________________
> 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