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 execute the JavaScript with Rhino, a JavaScript library for Java.