ASP – The Microsoft Route to the Internet and a comparison with JAVA.
As the popularity of the web has increased in the recent years, a number of technologies are being introduced that can develop sophisticated Web Applications. COMPANIES THAT ARE PROMOTING THEIR BUSINESS ACTIVITIES THROUGH INTERNET ARE NOW LOOKING FOR A TECHNOLOGY THAT CAN DEVELOP DYNAMIC AND ROBUST APPLICATIONS WITH LOW DEVELOPMENT AND MAINTENANCE COST. Earlier the Internet Information Server (IIS) used to serve just static HTML pages. When the client requested for a page from a site, the server would fetch the static HTML page from the disk and send it to the client's browser. So IIS used to just act as an interface between the browser and a bunch of static files. With the advent of Technology, dynamic sites that could store the data sent by the client on to the database residing on the server were introduced.
Review of Earlier Technologies
CGI
CGI was the first technology that was introduced at that time. A CGI script normally consists of CGI libraries (which can be written in programming languages such as C/C++) through which one can connect to a database. However CGI has some inherent limitations. Everytime the user requests a CGI script, the server has to launch the CGI program which takes processor time. The CGI libraries have to be compiled every time leading to slow processing. Also, CGI is weak when it comes to connecting to the databases compared to the new technologies.
ISAPI (Internet Server Application Programming Interface)
It is a technology that makes use of a set of compiled applications. Developing applications with ISAPI, is a complicated process. However the performance of these applications is very good.
ASP (Active Server Pages)
The latest technology introduced by Microsoft. This technology was introduced by Microsoft with the release of IIS 3.0. It is a revolutionary concept of building Dynamic Web applications. With ASP, we can write script that gets executed on the server ( called as Server side script) the results of which can be sent to the client browser. The Technology integrates scripting languages such as VBScript & JavaScript. The programmer can choose the scripting language of his choice. Support for PERL can also be added to ASP. SINCE THE TECHNOLOGY IS INTRODUCED BY MICROSOFT, IT SUPPORTS OTHER MICROSOFT TECHNOLOGIES SUCH AS OLE, ACTIVE X, ADO, COM etc..
An ASP file consist of 3 separate parts – HTML, client side script and server side script. Whenever the client requests for an ASP page, the server understands that request is for an Active Server Page because of the ASP extension. The web server sends the file to a special program named ASP.dll which processes the file and converts it to HTML. The generated HTML file is sent back to the client browser. The first time a user downloads an ASP page, the scripts in the page are processed. The server stores the compiled code until the source file changes. Because of this caching, ASP files are not processed at every request. The Client cannot view the source code so all our business logic and algorithms remain hidden from the user.
BENEFITS OF ASP
Java
Java is an integrated language that uses an intermediate language. The source code of a Java program is compiled in Byte Code, which can not be run by itself. The byte code must be converted into machine code at runtime. Upon finding a Java applet, the web browser switches to its Java interpreter (JVM) which translates the byte code into machine code and runs it. Major features of Java are
The co –authors Ms. Vaishali and Ms. Sangeeta are Senior Faculties at Fands and can be reached at
response@fandsindia.com