This variable provides an interface to the chain context and other helpful objects. The primary way to pass information into a script is through the chain context. All interactions with the outside environment is through Commons Chain to help Struts Flow to work in a Servlet, Java Service Faces, Portlet, or any other external context, even if that context isn't web-based. This variable specifically doesn't contain any Struts-related methods to allow Struts Flow to be used outside Struts.
| Property Summary | |
|---|---|
NativeArray
|
parameters
|
JavaScriptInterpreter
|
interpreter
|
Context
|
context
|
| Function Summary | |
|---|---|
Object
|
load(java.lang.String filename)
|
Object
|
resolveToPath(java.lang.String filename)
|
String
|
toString()
|
void
|
diplayAllContinuations()
|
Map
|
jsobjectToMap(org.mozilla.javascript.Scriptable jsobject)
|
Object
|
get(java.lang.String id)
|
void
|
put(java.lang.String id, java.lang.Object o)
|
Object load(java.lang.String filename)
Load the script file specified as argument. The path is resolved from the same root as the calling script.
filename -
a String valueObject valueMap jsobjectToMap(org.mozilla.javascript.Scriptable jsobject)
Converts a JavaScript object to a HashMap