ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/program/bsf.htm

45 lines
2.6 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Bean Scripting Framework</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="bsf"></a>Bean Scripting Framework</h3>
<img src="rzamy514.gif" width="245" height="272" alt="Architecture of WebSphere BSF support" border="0" align="right">
<p>The Bean Scripting Framework (BSF) enables you to use scripting language functions in your Java server-side applications. This framework also extends scripting languages so that you can use existing Java classes and Java beans in the JavaScript language. BSF in WebSphere Application Server - Express for iSeries supports the Rhino ECMAScript.</p>
<p>BSF provides an access mechanism to Java objects for the scripting languages it supports, so that both the scripting language and the Java code can access code exclusive functions. The access mechanism is implemented through a registry of objects that is maintained by BSF. With BSF, you can write scripts that create, manipulate and access values from Java objects, or you can write Java programs that evaluate and access results from scripts.</p>
<p>WebSphere Application Server - Express provides the Bean Scripting Framework, which consists of a BSF manager, a BSF engine, and a scripting engine. (See the figure.)</p>
<p>See these examples of using BSF with WebSphere Application Server - Express:</p>
<blockquote>
<p><strong><a href="bsfexjs.htm">Example: Convert JavaScript source to the Bean Scripting Framework</a></strong>
<br>This example demonstrates how to convert JavaScript code into BSF code.</p>
<p><strong><a href="bsfscene.htm">Scenario: Create a Bean Scripting Framework application</a></strong>
<br>This scenario demonstrates how to implement a BSF application by using JavaScript code within JSP tags.</p>
</blockquote>
<p>See the <a href="codex.htm">Code example disclaimer</a> for legal information about these code examples.</p>
<p>For more information about BSF, see these references:</p>
<ul>
<li><a href="http://www.mozilla.org/rhino/bsf.html">Using Rhino with BSF and Apache</a> <img src="www.gif" width="18" height="15" alt="Link outside Information Center"></li>
<li><a href="http://www.webstandards.org/learn/resources/javascript/index.html">Web Standards Project's Scripting page</a> <img src="www.gif" width="18" height="15" alt="Link outside Information Center"></li>
</ul>
</body>
</html>