Calling SSJS from Java?

后端 未结 1 998
刺人心
刺人心 2021-01-13 19:31

I have created an xPages application which uses a lot of server side javascript code functions located in a server side javascript library.

Now I have some java cod

相关标签:
1条回答
  • 2021-01-13 19:55

    You can create a value binding,

    ValueBinding vb = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{javascript:getData()}");
    System.out.println(vb.getValue(FacesContext.getCurrentInstance()).toString());
    

    This would call the getData() method from your SSJS library.

    0 讨论(0)
提交回复
热议问题