Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advanced search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Devaka Cooray
Tim Cooke
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Saloon Keepers:
Piet Souris
Bartenders:
Forum:
Java in General
Call javascript from Java
sindhu sheela
Greenhorn
Posts: 26
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hai,
I want to call a javascript funtion from a java code.
Is their a way to do it?(Is their any Class to call javascript from Java).
Im working in a struts1.29 application.
Thank You
Ulf Dittmer
Rancher
Posts: 43081
77
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes, that's possible. Java 6 introduced the
javax.scripting package
for running scripts written in other languages. Java 5 and earlier can use the Apache BSF library.
Rob Spoor
Sheriff
Posts: 22907
132
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Check out the javax.script package.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
David Newton
Author
Posts: 12617
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
If you want to call *client*-side JavaScript, however, the answer is no, at least not directly.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to listen to a button click event within a iframe?
JOptionPane No X11 DISPLAY error
Calling Javascript function from Java Code
reply immediately
calling java class file from javascript
More...