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.
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.
Share Improve this question asked Mar 17, 2012 at 4:40 Abhinav KulshreshthaAbhinav Kulshreshtha 2,2052 gold badges24 silver badges38 bronze badges 02 Answers
Reset to default 13The 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.
not easy to find a good tutorial. You can check the Chapter 12 of the book "Javascript: The Definitive Guide 6th Edition", to get some very good insights. But, if you don't like java I think it's going to be a nightmare.