Does the ECS include a method for incorporating ECMAScript into a page.
There is a script tag which is well documented but at first glance I can't
see a simple method of actually adding method calls. I want to avoid the
following sort of code (the example may not be correct as I have yet to
start working with ECS).

Script script = new Script;
script.addElement("ecmaScriptFunction1('string1','string2');");
script.addElement("var y = ecmaScriptFunction2(obj1,'string2');");

My aim is to use a servlet to generate an HTML page containing calls to
ECMAScript functions defined in a separate .js file.

Thanks for any pointers,

Shimon



--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to