CookXml BSF Extension
Introduction
This extension basically adds a
<script> tag, which supports
Bean Scripting Framework in
CookXml. The exact script language can be specified at run time. BSF adds only tiny bit of overheads in script loading, but it provides a framework where different scripting languages could be easily added. The down side is that accessing objects declared in CookXml documents using
id attribute are not as easily accessed. One needs to call
bsf.lookupBean (idName) to get the object.
This extension requires the cookxml.common package.
Demo
Try the
Java Web Start demo for some simple demos. The frame code was also written in BSF using BeanShell.
Note: BSF 2.3.0 has an uncaught exception in BSFManager class initializer code if it is run within Java Web Start sandbox. See
ASF Bugzilla for more information. This demo used the changes mentioned in the bug report to get Java Web Start working.