Validating JavaScript using Rhino? (Java references within JavaScript) [message #228924] |
Fri, 13 March 2009 19:33 |
Eclipse User |
|
|
|
Originally posted by: tfrasso.athenium.com
Hello, and thanks in advance for your help!
At my company, we use JavaScript (and the Mozilla Rhino engine) in many
different parts of our application. Our JavaScript code does reference
a few different custom Java classes.
Is there a way to include these Java classes in the JavaScript libraries
somehow, so that a validation error doesn't occur? I know that Rhino
allows this, and I'm pretty sure that Rhino is available in Eclipse, but
not quite sure of how to take advantage of this functionality.
Or is there a Eclipse tool for this purpose?
Regards,
Anthony Frasso
|
|
|
Re: Validating JavaScript using Rhino? (Java references within JavaScript) [message #229617 is a reply to message #228924] |
Wed, 25 March 2009 18:08 |
|
Anthony N. Frasso wrote:
> Hello, and thanks in advance for your help!
>
> At my company, we use JavaScript (and the Mozilla Rhino engine) in many
> different parts of our application. Our JavaScript code does reference
> a few different custom Java classes.
>
> Is there a way to include these Java classes in the JavaScript libraries
> somehow, so that a validation error doesn't occur? I know that Rhino
> allows this, and I'm pretty sure that Rhino is available in Eclipse, but
> not quite sure of how to take advantage of this functionality.
>
> Or is there a Eclipse tool for this purpose?
If there's a representation of the correct classes and functions in
your JavaScript Include Path, it should be aware of them. I don't
know specifically about the implementation in Rhino, however, in
terms of what's available beyond the standard built-in objects from
the specification.
--
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Powered by
FUDForum. Page generated in 0.02632 seconds