I want to run JavaScript code at the server side. I want to manipulate result returned by JavaScript inside my Java code. How can it be done?
You need a JS runtime inside of a Java runtime. One way to do this is Rhino