Server-side JavaScript

From Wikipedia, the free encyclopedia

Server-side JavaScript (SSJS) refers to JavaScript that runs on server-side. This term was coined because the language was originally limited to just client-side, i.e. client-side JavaScript (CSJS)..

The first implementation of SSJS was Netscape's LiveWire, included in their Enterprise Server 2.0 product, released in 1996.

Examples of current uses of JavaScript on the server include:

  • ASP, using JScript as an alternative to its default scripting language.
  • firecat, a Server-Side JavaScript Webserver. A complete platform (Webserver and framework) for developers to create Server-Side JavaScript web applications.
  • Helma Object Publisher, a JavaScript Web Application Framework using Rhino and embedding the Jetty HTTP Server.
  • jsext uses SpiderMonkey, makes inclusion of C libraries very simple and contains high-level wrappers written in JavaScript.
  • JSP, using Caucho Resin Servlet Runner which propose pure JavaScript as an alternative to Java in JSP (Resin version 2 only. Not available in version 3).
  • OpenMocha, a JavaScript Application Server based on Helma.
  • Rhino in Spring, a Rhino based Spring MVC controller that allows writing the logic of multirequest HTTP conversations in JavaScript.
  • Rhinola, using Rhino with gcj on the Apache HTTP Server.
  • Whitebeam, using SpiderMonkey on the Apache HTTP Server.
  • haXe is a meta-language, which among others can execute javascript. haXe itself is a variant of javascript.
  • Apache Cocoon uses flowscript (a variant of javascript) for the controller-layer. It's based on Rhino.
  • Server Side Javascript Uses Rhino to wrap Jetty 6, allowing you to write servlets in Javascript.
  • wxJavaScript has an Apache module mod_wxjs which can be used to write server-side javascript with E4X and wxWidgets ported classes, using SpiderMonkey
  • ServiceCenter, a commercial product in the HP OpenView product range, uses an embedded Mozilla JavaScript interpreter to allow tailoring of the application server.
  • Veracart a hosted ecommerce platform which uses PHP to process data/events on the remote server, while using server-side JavaScript to generate the content via the intermediate site (store website), on to the clients computer.
  • Zimki SSJS Application & web hosting environment.
  • Phobos can run in Glassfish or another Java servlet container and uses Rhino.
  • POW Plain Old Server is a Mozilla Firefox Extension which adds a server to your browser. Templates can use server side javascript.
  • Livelink Web Content Management Server (formerly Obtree) is a commercial content management system used in a number of European public-sector and financial organizations. It uses SSJS for dynamic features and to customize the behavior of built-in objects.
  • JuiceScript

Other common server-side programming languages are Java, C#, Perl, PHP, Python, Ruby and ColdFusion amongst others.

[edit] Specifications

[edit] See also