ovidiu 02/03/23 23:37:27
Modified: src/scratchpad/schecoon/src/org/apache/cocoon/components/flow
JavaScriptInterpreter.java
Log:
Pass the current continuation in the environment, so it becomes
available to the pipeline components. Also pass the bean dictionary
here, instead of the JSCocoon method.
Revision Changes Path
1.9 +6 -4
xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/JavaScriptInterpreter.java
Index: JavaScriptInterpreter.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/JavaScriptInterpreter.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- JavaScriptInterpreter.java 21 Mar 2002 23:16:14 -0000 1.8
+++ JavaScriptInterpreter.java 24 Mar 2002 07:37:27 -0000 1.9
@@ -187,6 +187,7 @@
}
public void processPipeline(String name, Map pipelineArgs, Object bizData,
+ WebContinuation continuation,
Environment environment, InvokeContext ctx)
throws Exception
{
@@ -196,6 +197,9 @@
throw new RuntimeException(msg);
}
+ environment.setAttribute("bean-dict", bizData);
+ environment.setAttribute("kont", continuation);
+
ProcessingNode pipeline
= resources.getNodeByName(MapStackResolver.unescape(name));
@@ -204,11 +208,9 @@
try {
pipeline.invoke(environment, ctx);
}
- catch (Exception ex) {
- ex.printStackTrace();
- throw ex;
- }
finally {
+ environment.removeAttribute("bean-dict");
+ environment.removeAttribute("kont");
if (pipelineArgs != null)
ctx.popMap();
}
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]