• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

applet jsp communication

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody !
can someone plzzz let me how to communicate jsp textbox into applet without submitting form.
eg: if i have text box in jsp and whatever i type in the text box that should appear in applet without submiting the form ..
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use onchange javascript method for textbox, and in the associated method, set the text in the applet.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you give me a little example,thanks a lot!
 
Raghvendra Sharma
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<input type=text onclick="setApplet()">
<script language="javascript1.2">
function setApplet()
{
document.appletName.setterMethodName("value you want to send");
// mind one thing, you can't send anything but string.
}

here appletName is the name attribute of the applet tag, and setterMethod is the public method of applet expecting a string argument.
hope it helps

raghav..
</script>
[This message has been edited by Raghvendra Sharma (edited August 22, 2001).]
[This message has been edited by Raghvendra Sharma (edited August 22, 2001).]
 
I'm sure glad that he's gone. Now I can read this tiny ad in peace!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic