下記のコードを記載すれば実行が可能になります。
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(スクリプト開発)を呼び出すことは可能ですか。