Hi all.
I'm tryng to get flowscript work
When I try to use flowscript, as in the flow/calc demo of cocoon2.1 i get this error:


ReferenceError: "Continuation" is not defined. (resource://org/apache/cocoon/components/flow/javascript/system.js; line 15)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557)
at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1076)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2265)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:58)
at org.apache.cocoon.components.flow.javascript.JavaScriptInterpreter.callFunction(JavaScriptInterpreter.java:531)
at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:197)
....
....
....


What is it?
Seems an internal error!
Anyone can help me?

My sitemap is:

<map:components>
<map:generators default="file"/>
<map:transformers default="xslt"/>
<map:readers default="resource"/>
<map:serializers default="html"/>
<map:matchers default="wildcard">
<map:matcher logger="sitemap.matcher.header" name="filename" src="org.apache.cocoon.matching.modular.CachingRegexpMatcher">
<input-module name="request-param">
<parameter>filename</parameter>
</input-module>
</map:matcher>
</map:matchers>
<map:selectors default="browser"/>
<map:flow-interpreters default="JavaScript"/>
</map:components>



<!-- =========================== Pipelines ================================= -->


<map:flow language="JavaScript">
<map:script src="test.js"/>
</map:flow>
<map:pipelines>
<map:pipeline>
<map:match pattern="test">
<map:generate src="test.xml" />
<map:serialize type="xml" />
</map:match>


   <map:match pattern="kont/*">
           <map:call continuation="{1}"/>
   </map:match>

   <map:match pattern="script">
           <map:call function="test"/>
   </map:match>
 </map:pipeline>
</map:pipelines>

and test.js is

function test()
{
   sendPage("test");
}

Thanks in advice,

Luca Marchetti


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to