Can I call Pagebase (script development) from J2EE?

 
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
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk