Getting Server-side Javascript to work for me
I am wondering how to install a Javascript runtime engine to work with an Apache HTTP s开发者_如何学JAVAerver. My aim is to run server-side Javascript.
Thanks in advance for any help!
I think you may have to clarify why you want to do this.
If you're just looking to execute JavaScript code, Rhino will get you the ability to run javascript within a Java application. However, since its not in a web browser you won't have any access to any sort of DOM.
Other than that, JavaScript is mostly a language that was intended to run in a web browser on the client.
精彩评论