Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / August 2005

Tip: Looking for answers? Try searching our database.

extract data from java applet

Thread view: 
Ashok - 11 Aug 2005 10:03 GMT
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/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.