Active Server Pages

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Active Server Pages
Developer(s) Microsoft
Stable release 3.0 (no further versions planned)
Type Web application framework
License Proprietary
Active Server Pages
Filename extension .asp
Developed by Microsoft

Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages. Initially released as an add-on to Internet Information Services (IIS) via the Windows NT 4.0 Option Pack (ca. 1998), it was subsequently included as a free component of Windows Server (since the initial release of Windows 2000 Server). ASP.NET has superseded ASP.

ASP 2.0 provided six built-in objects: Application, ASPError, Request, Response, Server, and Session. Session, for example, represents a cookie-based session that maintains the state of variables from page to page. The Active Scripting engine's support of the Component Object Model (COM) enables ASP websites to access functionality in compiled libraries such as DLLs.

Contents

[edit] Summary

Web pages with the .asp file extension use ASP, although some web sites disguise their choice of scripting language for security purposes (e.g. still using the more common .htm or .html extension). Pages with the .aspx extension use compiled ASP.NET (based on Microsoft's .NET Framework), which makes them faster and more robust than server-side scripting in ASP, which is interpreted at run-time; however, ASP.NET pages may still include some ASP scripting. The introduction of ASP.NET led to use of the term Classic ASP for the original technology.

Programmers write most ASP pages using VBScript, but any other Active Scripting engine can be selected instead with the @Language directive or the <script language="language" runat="server"> syntax. JScript (Microsoft's implementation of ECMAScript) is the other language that is usually available. PerlScript (a derivative of Perl) and others are available as third-party installable Active Scripting engines.

[edit] Alternative implementations

There are only a few alternative implementations, and most of them are implemented in Java.[citation needed] Unlike the Mono ASP.NET implementation, these versions tend to be quite different to the Microsoft interpreter, so not all scripts written for the Microsoft platform may be supported, much more so because non-trivial ASP web applications often rely on external components (mostly COM-based ones).

Example of these include:

  • Sun ONE Active Server Pages
    This implementation was discontinued and is no longer available. Some older versions still exist on the World Wide Web.[citation needed]
  • Arrowhead ASP
    This is a Java Servlet which supports the ASP syntax and VBScript. The latest release is 0.2.3, released on June 14, 2004.
  • Cloudfoundry ASP
    This is a fork of the Arrowhead ASP implementation[1] with updated libraries and optimizations for the Cloud Foundry platform. It seems to be quite recent, but the differences with Arrowhead are few.[citation needed]
  • osASP
    This is going to become an ASP implementation based upon the Node Javascript environment (and, accordingly, will support JScript only).

[edit] Perl-based alternative implementations

As said above, Perl can be used in ASP environment instead of VBScript and JScript. What's more relevant in this context, some alternative implementations exist

  • Apache::ASP
    This is a mature Perl package running under the legacy Apache 1.x + mod_perl environment.
  • Apache2::ASP
    Apache2 + mod_perl2 reimplementation of the former; deprecated in favour of ASP4 (see below).
  • ASP4
    The Apache2::ASP author also wrote an ASP derivative called ASP4, which retains the overall structure of ASP but with some minor differences.

[edit] See also

[edit] References

[edit] External links

Personal tools
Namespaces

Variants
Actions
Navigation
Interaction
Toolbox
Print/export
Languages