In my previous post, I showed how the parameters to a JavaScript function can be supplied with Java. The next step is to supply other variables. The simplest way to set some variable values is to use ScriptEngine.put(name, value): ScriptEngine engine = …; engine.put(“taxRate”, 0.0825); // 8.25% // evaluate script // invoke function Now the [...]
-
Calendar
May 2012 M T W T F S S « Aug 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 -
Pages
-
Recent Posts
-
Tags