Hi,
is it possible to extract data from a web based java applet in order to
enter that data in mysql?
for example, something that would let me extract the data shown in applet on
http://gcitrading.com/forex-quotes.htm and enter it in mysql. The data needs
to be compared too so that any changes that this applet shows is entered
with a time stamp.
Or any info source?
Thanks.
Ashok
Bill Karwin - 11 Aug 2005 18:30 GMT
> Hi,
> is it possible to extract data from a web based java applet in order to
[quoted text clipped - 4 lines]
> with a time stamp.
> Or any info source?
From what I read in these articles, the answer seems to be no. For
code to reference that applet's methods and data, it must be an applet
that originates from the same server and directory.
Sun Tutorial:
"Sending Messages to Other Applets"
http://web2.java.sun.com/docs/books/tutorial/applet/appletsonly/iac.html
Java Tip 101:
"An alternative way for applet-to-applet communication"
http://www.javaworld.com/javaworld/javatips/jw-javatip101.html
Another issue that you should consider is license to use the data.
Financial quotes are often not free, and you should make sure you have
permission to use the data from a quote service before skimming it for
your own purposes. Also, I note on the page you cite above that the
data in that applet is for informational purposes, and may not be accurate.
Regards,
Bill K.
John Currier - 11 Aug 2005 19:26 GMT
Tools like WinRunner do it. I believe they plug in their own JVM with
the appropriate hooks.
John
http://schemaspy.sourceforge.net
Thomas Hawtin - 11 Aug 2005 20:33 GMT
> is it possible to extract data from a web based java applet in order to
> enter that data in mysql?
> for example, something that would let me extract the data shown in applet on
> http://gcitrading.com/forex-quotes.htm and enter it in mysql. The data needs
> to be compared too so that any changes that this applet shows is entered
> with a time stamp.
First, make sure you are not infringing any copyright or other
intellectual property.
Assuming that you have done so: You should be able to run applets in
your own application, with a dummy AppletContext. Then get it to paint
its data to your own Graphics object. Typically the text data will be
sent through drawString. Or perhaps you can read it off a Label. That
applet in particular is naughty in using Netscape classes (which
Microsoft copied).
Tom Hawtin

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/