File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes javascript securely. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "javascript securely." Watch "javascript securely." New topic
Author

javascript securely.

Elgar Ets
Greenhorn

Joined: May 21, 2013
Posts: 1

Id like to run user scripts on other computer or in server.
But that method describe here (Java Scripting API http://docs.oracle.com/javase/7/docs/technotes/guides/scripting/programmer_guide/) is not secure.

Is there any way to run Javascript securely?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42273
    
  64
That API is probably secure enough if you run it in a separate classloader and apply a security manager to it.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javascript securely.