Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Validating JavaScript using Rhino? (Java references within JavaScript)
Validating JavaScript using Rhino? (Java references within JavaScript) [message #228924] Fri, 13 March 2009 15:33 Go to next message
Eclipse UserFriend
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 14:08 Go to previous message
Eclipse UserFriend
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
Previous Topic:jsdt grammer parser
Next Topic:adding custom tags to error libary
Goto Forum:
  


Current Time: Sat Jun 07 09:12:45 EDT 2025

Powered by FUDForum. Page generated in 0.04057 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top