To let JavaScript able to run in server-side?
If it’s justified, what’s the advantage? and any good application for such use?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are lots of possible reasons. Here’s a blog post by Steve Yegge (of Google) explaining why he was looking into using Mozilla Rhino (which later because javax.script).
According to the Rhino site:
So I guess that’s one good reason. Other things I’ve read include doing it because you have some complex language that you want to run on either the browser or the server, and you don’t want to write it twice (as here).
Generally speaking, that’s a lot of complexity, and generally speaking, complexity is bad.