PDA

View Full Version : request on rhino interpreter



tfit
05-22-2008, 12:38 AM
Hello,

Can someone point me to some reading of how I can access java objects through javascript?
Thanks.

matthewbluewars
05-29-2008, 10:20 PM
I am not a Java coder, but I can say this about transferring variables through scripting languages. I originally intended this for a PHP-to-JavaScript.
Make some sort script that prints <script type="text/javascript">, then some code for assigning the varables, then </script> on the webpage.

tfit
05-30-2008, 12:41 AM
Let me elaborate on this a bit. First I want to use inline javacode without it being compiled to bytecode. Than I want to pass data to it.
From what I understand rhino is used on the server-side. I haven't seen anything about so far on the client-side, let alone of java being interpreted. It would be so nice if BSF could be used in a browser.