Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tutorials for Mozilla Rhino

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.

like image 522
Abhinav Kulshreshtha Avatar asked Mar 17 '12 04:03

Abhinav Kulshreshtha


2 Answers

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.

like image 140
TryTryAgain Avatar answered Oct 29 '22 23:10

TryTryAgain


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.

like image 1
JSRound Avatar answered Oct 30 '22 01:10

JSRound