File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Getting the value of a input box in an applet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Reply locked New topic
Author

Getting the value of a input box in an applet?

Darren Alexandria
Ranch Hand

Joined: Aug 17, 2007
Posts: 185
Good day,

For an example, I have a JSP page which contains an applet.
The applet contains an input box which supposed to get data
from a barcode reader. My question is, is it possible to
get that data in the input box and put it in an input box
written in html or JSP?

Or if the applet that contains the input box is "mixed"
together with other input box written in JSP,
can I get all the values of all the input box?
How?


Thanks.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
Applets can read and write to the DOM of the HTML page they're on by using the Common DOM API.
Darren Alexandria
Ranch Hand

Joined: Aug 17, 2007
Posts: 185
Okay, I will explore that.

Thanks.

God bless.
Darren Alexandria
Ranch Hand

Joined: Aug 17, 2007
Posts: 185
Hi,


I'm sorry I didn't quite understand the things written in the link.
I want to get the value of the input box in applet and
put in a property in javaScript or access it through javaScript.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread, where you have provided more information.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting the value of a input box in an applet?
 
It's not a secret anymore!