• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet jsp communication

 
ashish guptaa
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 ..
 
Raghvendra Sharma
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.
 
andy duf
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic