InfoCenter Home > 4.2.5: Using the Bean Scripting FrameworkMost Web developers are familiar with using scripting languages to generate user-cued HTML pages or to create new browser windows. The Bean Scripting Framework (BSF) enables developers to use scripting language functions in their Java, server-side applications. It also extends scripting languages so that existing Java classes and Java beans can now be invoked from that language. With BSF, scripts can now create, manipulate and access values from Java objects and, conversely, Java programs can now evaluate and access results from scripts. BSF components:WebSphere Application Server provides the Bean Scripting Framework (BSF), which consists of a BSF Manager and a BSF Engine, and a scripting engine which is the Rhino version 1.5 environment from Netscape.JavaScript from Netscape is the only language supported by WebSphere Application Server's implementation of BSF. The relationship of the BSF components is illustrated in the following graphic: ![]() Features of BSF:The BSF Manager is a bean that provides scripting services for the application and support services for the scripting engine to enable it to interact with the JVM.The BSF Engine is an interface that allows a specific scripting language, in this case Netscape's JavaScript, to become part of the bean scripting framework. Visit the BSF project Web site for news on the latest updates to BSF functionality. See article "BSF examples and samples" when you are ready to delve into programming examples.
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|