Hi John,
On 15 Dec 2004, at 13:05, John L. Webber wrote:
importPackage(Packages.com.foo);
var myFoo = new Foo(); //a com.foo.Foo
This worked fine under 2.1.3. Now with 2.1.6 I get the error message, "Implicit declaration of global variable '_packages_' forbidden. Please ensure all variables are explicitely declared with the 'var' keyword
at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpre ter$ThreadScope.put(FOM_JavaScriptInterpreter.java:459)
at org.mozilla.javascript.ImporterTopLevel.importPackage(ImporterTopLevel. java:157)"
Is importPackage no longer valid, or am I missing something here?
Try
importPackage(com.foo);
Jon
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
