Just added scriptlet application to http://scripting.dev.java.net
use a predefined applet class (called
code can define one or more script functions to "override"
applet's methods such as start, stop, init, destroy or paint.
By just defining
paint function, scriptlet becomes equivalent to the new canvas tag.
But unlike canvas tag, scriptlet functions can access the entire
JDK API. The current applet object is exposed as first argument
is defined. This
window variable can be used by scriptlet scripts to access browser's script objects. For example,
window.location.href returns the URL of the currently visited web page. Similarly
window.document can be used to get the DOM document object of the current HTML page. Few simple scriptlets are in the
applications/scriptlet/src/scriptlets directory of the scripting project.