ovidiu 2003/01/08 19:40:24 Modified: src/java/org/apache/cocoon/components/flow/javascript JavaScriptInterpreter.java Log: If the continuation id is not found, respond to the user by passing the control to the invalidContinuation.xml pipeline. Revision Changes Path 1.13 +6 -2 xml-cocoon2/src/java/org/apache/cocoon/components/flow/javascript/JavaScriptInterpreter.java Index: JavaScriptInterpreter.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/flow/javascript/JavaScriptInterpreter.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- JavaScriptInterpreter.java 7 Jan 2003 23:17:09 -0000 1.12 +++ JavaScriptInterpreter.java 9 Jan 2003 03:40:24 -0000 1.13 @@ -515,8 +515,12 @@ { WebContinuation wk = continuationsMgr.lookupWebContinuation(id); - if (wk == null) - throw new RuntimeException("No continuation with id " + id); + if (wk == null) { + List p = new ArrayList(); + p.add(new Interpreter.Argument("kontId", id)); + callFunction("handleInvalidContinuation", p, environment); + return; + } Context context = Context.enter(); context.setGeneratingDebug(true);
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]