Have you ever wanted to execute a piece of JavaScript code from your Java program ?? If yes, read on.
There have been number of times when I have wanted to execute a piece of JavaScript code from Java. But I cannot do that (I have to convert that to Java code and compile it), up untill now.
Now, there is an API available to execute JavaScript code from a Java class. This is called Rhino, by Mozilla guys. Check it out.