编写以下代码后将可以执行。
import jp.co.intra_mart.foundation.scenario.*;
private String jsExec(){
String ret = "";
try{
FunctionContainerFile jsFile = new FunctionContainerFile("xx/xx.js");
VariableScope vScope = jsFile.execute();
ScriptValue sValue = vScope.invoke("func", "arg");
ret = (String) sValue.getValue();
} catch (Exception e) {
ret = e.toString();
}
return ret;
}
-- 适用对象 ----------------------------------------------------------------
iWP/Web系统构建基础/WebPlatform/AppFramework
--------------------------------------------------------------------------------
FAQID:263
是否可以从J2EE调用Pagebase(脚本开发)。