Results 1 to 6 of 6

Thread: Difference between Servlet & ASP

  1. #1
    Join Date
    Dec 2009
    Posts
    32

    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.

  2. #2
    Join Date
    Apr 2008
    Posts
    2,010

    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 .

  3. #3
    Join Date
    May 2008
    Posts
    2,302

    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".

  4. #4
    Join Date
    Oct 2005
    Posts
    2,394

    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.

  5. #5
    Join Date
    May 2008
    Posts
    2,393

    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.

  6. #6
    Join Date
    Feb 2008
    Posts
    1,856

    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.

Similar Threads

  1. JSP and Servlet problem
    By Devabrata in forum Software Development
    Replies: 5
    Last Post: 21-07-2010, 12:12 AM
  2. Servlet static variable
    By Sheenas in forum Software Development
    Replies: 5
    Last Post: 06-03-2010, 10:24 AM
  3. Logging a Message in a Servlet
    By D_chapple in forum Software Development
    Replies: 5
    Last Post: 20-02-2010, 08:21 PM
  4. What is Servlet container?
    By Sonam Goenka in forum Software Development
    Replies: 5
    Last Post: 05-02-2010, 07:13 AM
  5. Invoke servlet from EJB components?
    By Nurhan in forum Software Development
    Replies: 3
    Last Post: 01-04-2009, 09:59 AM

Posting Permissions

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