TrainBeaser for iPhone
The moose likes Other Application Frameworks and the fly likes Apache Rhino questions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Apache Rhino questions" Watch "Apache Rhino questions" New topic
Author

Apache Rhino questions

Parth Mehta
Greenhorn

Joined: Mar 02, 2007
Posts: 7
Hello all,

I am using Apache Rhino in my Java app and have some questions:-

1) JavaScript to Java conversion: From what I have seen, in order to make a javascript method visible in the java class, you need have your java class implement an interface with the same method signature as in javascript. Is there a way to avoid this?

2) I have two JavaScript files, library.js and user.js. The first js file defines functions that the other will use. However, both these files are compiled separately. Is there a way to merge these two separately compiled scripts into one? (Like for example setting the first one as the "parent" context of the other?).

 
 
subject: Apache Rhino questions
 
Threads others viewed
Interesting behavior when trying to import
Need to refer a Javascript from another WAR file
including jar files in jar files
mirth javascript code
Need to access Java methods and javascript functions in a WAR file from another WAR
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture