This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Call a JacaScript function from Java Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Call a JacaScript function from Java Bean" Watch "Call a JacaScript function from Java Bean" New topic
Author

Call a JacaScript function from Java Bean

Rudradutt Joshi
Ranch Hand

Joined: Dec 06, 2008
Posts: 45

Thanks for giving your time,

I need to call a JavaScript Function from my java Bean, and JS function will return some value. Please any body can give me some IDEA.
Charles Lyons
Author
Ranch Hand

Joined: Mar 27, 2003
Posts: 836
Java 6 has built-in support for JavaScript; for example, see Sun's Java Scripting Programmer's Guide. This is in fact just the Rhino engine bundled in with the JRE, so on earlier versions of the platform you can just download and use that library directly.


Charles Lyons (SCJP 1.4, April 2003; SCJP 5, Dec 2006; SCWCD 1.4b, April 2004)
Author of OCEJWCD Study Companion for Oracle Exam 1Z0-899 (ISBN 0955160340 / Amazon Amazon UK )
Rudradutt Joshi
Ranch Hand

Joined: Dec 06, 2008
Posts: 45

Thanks for your Help.
 
Don't get me started about those stupid light bulbs.
 
subject: Call a JacaScript function from Java Bean
 
Similar Threads
To call a function
How to call Javascript function from managed bean
Usage of EJB - Need clarification
why call a local stateless bean?
How to call Javascript function from an Application.