Can any one suggest a good tutorial for Mozilla rhino. What i want to do is to validate a form in java swing with javascript.
The official tutorial page on the mozilla website is not clear about actual coding, it only shows its features in code fragments.
There was also a page about scripting java inside javascript. Would it be better to use it instead of JSP for small applications, personally i didn't like java in web development compared to PHP.
The best thing to do is play with the examples supplied.
Also, I have found these to be helpful:
If you are on windows this is how to setup your environment and a simple intro (having you compile and run your first file).
This talks about how Rhino ECMAScript Engine is part of Java6 and how to leverage Java and scripting with the Java Scripting API.
This video from Google IO 2008 was very helpful
Rhino absolutely depends on one's inclination and interest in Java and JavaScript.