Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19: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 18:08 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4425
Registered: July 2009
Senior Member

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
Previous Topic:jsdt grammer parser
Next Topic:adding custom tags to error libary
Goto Forum:
  


Current Time: Tue Mar 19 08:15:59 GMT 2024

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

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

Back to the top