Access Keys:
Skip to content (Access Key - 0)
Home (Access Key - 1)
All spaces... (Access Key - 3)
Log in (Access Key - 5)
Sign up (Access Key - 6)
Toggle Sidebar

Mozilla Rhino

(None)

Mozilla Rhino

Also known as: js, rhino, JavaScript, javascript, ECMAScript, ecmascript

Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users.

Most people who have used JavaScript before have done so by adding scripts to their HTML web pages. However, Rhino is an implementation of the core language only and doesn't contain objects or methods for manipulating HTML documents. This is server-side JavaScript!

Rhino contains:

  • All the features of JavaScript 1.5
  • Allows direct scripting of Java
  • A JavaScript shell for executing JavaScript scripts
  • A JavaScript compiler to transform JavaScript source files into Java class files

Overloading Support

(4:36 PM) Dan Hardiker: var out = java.lang.System.out;
out.println("hello world"); // calls PrintStream.println(java.lang.Object)
out['println(double)'](13); // calls PrintStream.println(double) 

http://blogs.sun.com/sundararajan/date/20051024

Scripts

The following scripts contain the engine-rhino label indicating that they use this engine:

Backup Manager — These scripts allow you to create a handy interface for managing Confluence nightly backups via the web browser...
Page Forum — A very early attempt at making a mini-forum in Confluence...
Scanner — A basic script that recursively scans through the objects, properties and methods available in your context...
User Group List — This script lists all the user groups in Confluence...
Toggle Sidebar
Added by Guy Fraser on Jun 15, 2007 16:43, last edited by Guy Fraser on Jun 16, 2007 00:22

Adaptavist Theme Builder Powered by Atlassian Confluence