• 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:

How do java call javascript?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I would like to know how can a java application(not applet) calls a function from a jsp and vice versa. All the example I have found are all relating to java applets.
Thanks.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all, a jsp is usually a Java ServerPage not JavaScript. Different things.
JavaScript only runs inside a broswer and uses HTML to interface with the user. There is no java involved in javascript. The browser is reading the javascript and doing the logic. No browser - no javascript functionality.
I don't see how this could be done.
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cindy,
you're right; though I've heard about some Javasript extension for server-side(not browser related) scripting; not sure why Java not enough though.
Alex
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
cindy,
if we want to run vbscript other than browser there are options such as WSH(windows script host) engine,similarlly r
there any options for JavaScript.
 
reply
    Bookmark Topic Watch Topic
  • New Topic