PDA

View Full Version : Writing to the tomcat console from xaction javascript?



codek
12-19-2008, 09:48 AM
Hi,

I saw this code somewhere, but can't find it anywhere now!

Does anyone know the code to write to the tomcat log from a javascript in an xaction file?

I need to do some debugging! Thanks.

document.write doesnt work:

Error: JSRULE.ERROR_0003 - Javascript rule execution failed - org.mozilla.javascript.EcmaError: ReferenceError: "document" is not defined. (#4) (org.pentaho.plugin.javascript.JavascriptRule)

Thanks!
Dan

framar97
01-26-2009, 05:20 AM
try this:


java.lang.System.out.println('foo');


Francesco

codek
02-03-2009, 10:54 AM
Excellent thanks!