29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 2-9 Dependencies allowed in the MVC pattern<br />

So, to summarize, the MVC pattern is really about separation.<br />

2.4 Reviewing the supporting technologies<br />

2.4.1 JavaScript<br />

A B A depends on B<br />

Controller View<br />

Model<br />

<strong>Application</strong>s written for deployment on <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express<br />

are uniquely suited to the following technology options.<br />

Browser-based or client-side JavaScript is common. <strong>WebSphere</strong> <strong>Application</strong><br />

<strong>Server</strong> - Express also supports server-side JavaScript through the Bean<br />

Scripting Framework (BSF) of the Express <strong>Application</strong> <strong>Server</strong>.<br />

BSF enables you to use scripting language functions in your Java server-side<br />

applications. This framework also extends scripting languages so that you can<br />

use existing Java classes and JavaBeans in the JavaScript language. With BSF,<br />

you can write scripts that create, manipulate, and access values from Java<br />

objects, or you can write Java programs that evaluate and access results from<br />

scripts. BSF provides an access mechanism to Java objects for the scripting<br />

languages it supports, so that both the scripting language and the Java code can<br />

access code exclusive functions. The access mechanism is implemented<br />

through a registry of objects maintained by BSF.<br />

BSF in <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express supports the Rhino<br />

ECMAScript. The implementation is standard client-side JavaScript with all client<br />

object references removed and with the following server-side objects added:<br />

32 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!