Variable 'flow'

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.

Author:
Ovidiu Predescu
Author:
Dave Johnson
See Also:
Jakarta Commons Chain
Property Summary
NativeArray parameters
Gets the parameters passed by the Flow container
JavaScriptInterpreter interpreter
Gets the interpreter
Context context
Gets the chain context


Function Summary
Object load(java.lang.String filename)
Load the script file specified as argument.
Object resolveToPath(java.lang.String filename)
String toString()
Shows the state of this object
void diplayAllContinuations()
Displays all continuations for debugging
Map jsobjectToMap(org.mozilla.javascript.Scriptable jsobject)
Converts a JavaScript object to a HashMap
Object get(java.lang.String id)
Gets the value from the chain context
void put(java.lang.String id, java.lang.Object o)
Puts an object in the chain context

Properties

parameters

NativeArray parameters

Gets the parameters passed by the Flow container

interpreter

JavaScriptInterpreter interpreter

Gets the interpreter

context

Context context

Gets the chain context

Functions

load

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.

Parameters:
filename - a String value
Returns:
an Object value

resolveToPath

Object resolveToPath(java.lang.String filename)

toString

String toString()

Shows the state of this object

Returns:
The string state

diplayAllContinuations

void diplayAllContinuations()

Displays all continuations for debugging

jsobjectToMap

Map jsobjectToMap(org.mozilla.javascript.Scriptable jsobject)

Converts a JavaScript object to a HashMap

get

Object get(java.lang.String id)

Gets the value from the chain context

Parameters:
id - The object id
Returns:
The object

put

void put(java.lang.String id, java.lang.Object o)

Puts an object in the chain context

Parameters:
id - The id
o - The object