Difference between Servlet & ASP
Hi Friends,
I am learning the advanced java programming. In which the servlet concept is going on. But I am quit getting confused between Servlet and ASP. Both these used for the same purpose and having similar functionality. I have referred various books for this issue, but haven't got proper details. Please let me know some differences between Servlet and ASP. I would greatly appreciate your any help.
Re: Difference between Servlet & ASP
Servlet require a JVM to run. So it is necessary to have a Java virtual machine, an engine that implements the Servlet API Servlets and possibly a Web server. These various components involved in the delivery system Servlets cooperate in a well determined. The Java virtual machine can be connected in many ways the Web server that handles requests from the user, this depends on the type of solution chosen. In this case the integration of Servlets in the Web server is important .
Re: Difference between Servlet & ASP
A servlet is a Java program running within a server and responding to customer requests. The servlet is deployed in a container. The container provides a runtime environment for the servlet and manages its lifecycle. In virtually all cases, it is in the context of the Internet or an intranet and client requests are requests HTTP. The container is then a web container and the servlet is part of a web application. "Web Container" is the new name "servlet engine".
Re: Difference between Servlet & ASP
The ASP language is a programming language created by Microsoft in order to boost Web sites, it does not work in fashion, native only on Windows platforms. The ASP language, has its own file extension (*. asp). This means that when you surf the web and you can see in the url default.asp example, you know that the site is hosted Windows NT and uses asp technology. The ASP runs server side, this means that scripts you write will never be visible in a customer browser.
Re: Difference between Servlet & ASP
Hi friend,
The advantage of ASP is that it can be used with various scripting languages such as VBScript or JavaScript. The file is a file asp htm evolved in which one integrates scripts. Each of these scripts is framed by tags: <% And%> to separate other tags of ASP. ASP means Hasctive Server Pages (active server pages), this term means not much except that it emphasizes the active character and dynamics of a page written.
Re: Difference between Servlet & ASP
Once the servlet code written and compiled, the servlet must be deployed within a web container. Initialization parameters for servlets and applications minimizes the initialization code (hard code). For example, if a servlet requires access to a database, the best place to put the details on this database (URL the database and pilot channel) is the deployment descriptor. This will change the configuration of the database without having to recompile the servlet. The process of deploying servlets and web application is standardized.