How can you run Javascript using Rhino for Java in a sandbox?

前端 未结 6 876
梦毁少年i
梦毁少年i 2020-12-04 08:50

Part of our java application needs to run javascript that is written by non-developers. These non-developers are using javascript for data formatting. (Simple logic and str

6条回答
  •  情话喂你
    2020-12-04 09:34

    I just ran across this blog post that seems to be useful for sandboxing more or less anything (not just Rhino):

    http://calumleslie.blogspot.com/2008/06/simple-jvm-sandboxing.html

提交回复
热议问题