You can execute by describing the code below.
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;
}
-- Target ------------------------------------------------------------------------------------
iWP/ Web System Construction Platform/WebPlatform/AppFramework
------------------------------------------------------------------------------------------------
FAQID:263