是否可以从J2EE调用Pagebase(脚本开发)。

 
编写以下代码后将可以执行。
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
这篇文章有帮助吗?
0 人中有 0 人觉得有帮助
由 Zendesk 提供技术支持