Results 1 to 5 of 5

Thread: Asp.net or Java ?

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Posts
    32

    Asp.net or Java ?

    My company is considering whether to go the Asp.net or Java route for web based database applications. I would like to get a further a better understanding of Java. With ASP.net you have to set up a server with the dotnet framework and configure IIS. My understanding is that with Java database applications you create an applet and embed it in a HTML page and give you users a shortcut to the HTML page. IE has Java embedded in it so no setup is required on the server. Is this correct?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    No.

    ASP.NET is a language developed entirely for server applications. It only runs on MSs IIS. (I think there are extensions to Apache so ASP can run, but not yet extensions for ASP.NET). It is executed on the server and outputs HTML code which is sent to the client.

    Java is a multi-function language. You can develop real applications that are cross-platform compatible without recompiling. You can develop applets, which are apps embedded in a HTML page. They are executed on the clients machine by a virtual machine that is integrated in the browser. IE comes with a VM. You can download Sun's VM for IE and Mozilla and I think Opera too. All browsers should do that automatically.
    But the equivalent of ASP.NET in the Java world is the servlet. This is an app that runs on the server and is invoked by the server application which can be IIS, Apache or any other server application, nearly all can invoke servlets. Servlets generate HTML output which is sent to the client.
    You need a VM on the server to run servlets, but it is easily obtainable from Sun.

    Examples of pages that use ASP.NET:
    microsoft.com

    Examples of pages that use servlets (jsp=Java Server Page):
    sun.com, starwars.com, the w3 CSS validator

    Advantages of ASP.NET:
    Can contain pure HTML which is sent unprocessed. Servlets must ouput everything via some print statements.
    Needs not be recompiled when the code changes. (not sure)

    Advantages of servlets:
    The bytecode runs faster than the completly interpreted ASP.NET languages. (not sure)
    Not limited to MS servers.

    Other alternatives:
    CGI-scripts, esp. in PERL.
    PHP
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Lively Member
    Join Date
    Jan 2002
    Posts
    117
    One thing CornedBee forgot to mention was the use of JSP pages. This are java's version of asp pages. They can be used in conjunction with servlets and contain both html and java code, and again are translated by the server so no plugin for the user is needed.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Ah, I thought JSP and servlets were the same.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    Addicted Member
    Join Date
    Jan 2003
    Location
    Porto Alegre, RS
    Posts
    210
    java for sure, use JSP and Servlets and you have all powerfull of java in and out the internet!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width