Screen Scrape an Applet

I am working on a project that requires a good bit of HTML screen scaping.
I would like to read the contents of a page , post to it etc. For this purpose, I use HTTPURLConnection class.
One of the pages I would like to screen scrape, has an applet. I would like to read the contents of the applet in my java program. Could some help me get started on that?
It seems that I would need to mimick a web browser in my code. Any help is much appreciated.
Thanks

Well, you wanna do something like this:
URLClassLoader loader = new URLClassLoader(...);
Applet applet = (Applet) loader.loadClass("AppletName", true).newInstance();
applet.setStub(new YourStub());
//add Applet to a component so you can see it
applet.init();
applet.start();I don't know if it works though.

Similar Messages

  • Screen scraper java applet.

    Can anyone help me??
    Actually i have to read some data from java applet website.Reply me soon

    Use clearRect(x,y,w,h) method
    -XL

  • Screen scraper

    I am looking for a screen scraper software that works with Forte in the
    middle tier. I've only come across a product called Expresso from
    Conextions. My questions are:
    1. Are there other tools out there that works well with Forte in the middle
    tier ?
    2. For people who've used Expresso, are there any issues/advice/comments ?
    Thanks in advance.
    Stuart.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Have you looked at CNT's (formerly Apertus Technology) Enterprise
    Connect product [screen scraper on steroids]?
    It's been tested in a few protos and has a very scalable architecture
    for UNIX, and NT platforms.
    It follows the concept of mapping regions of screens and storing the
    meta data to abstract away from hard-coding into application logic.
    At runtime there are a number of ways to retrieve the data from
    green-screens/char mode apps:
    1. Use the c source code generator executables for driving the screens
    2. Combine forte wrapper
    3. Dispatch their web server CGI gateway in combination w/ Forte WEB
    4. [Maybe] have their code gen technology create TOOL / Java service
    If you want more info, let me know.
    -jim
    Ngai, Stuart wrote:
    >
    I am looking for a screen scraper software that works with Forte in the
    middle tier. I've only come across a product called Expresso from
    Conextions. My questions are:
    1. Are there other tools out there that works well with Forte in the middle
    tier ?
    2. For people who've used Expresso, are there any issues/advice/comments ?
    Thanks in advance.
    Stuart.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>--
    Jim Rice mailto:[email protected]
    Forte Software, Inc. http://www.forte.com
    National Tech Services Work#: 301-721-1910
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Screen scrape Oracle 9iAS web based forms

    Hello Friends,
    We are currently in the coding stage of a screen scraping application.But we are facing a serious problem,that might cause us to abandon this project altogather.We are supposed to screen scrape Oracle 9iAS based Oracle Forms,precisely speaking we have to trace the Msgboxes and Statusbar warnings,which are thrown at runtime during any transaction by the system.Could anyone help?
    Please reply ASAP.
    Thanks and Regards,
    Samir P
    Bangalore

    Hi,
    though this is not security related: You can use JavaBeans within a Bean Container in Oracle Forms. This allows you to add any Java you like to the Forms front end. However, you may have to dig a bit into the Forms client for this.
    Frank

  • Screen Scraper in Java

    If I have a checkbox on Line 1 and Line 2 and to the right of these I have text, is there anyway to "scrap" or get this text depending on whether the checkbox has been clicked on (visable) ?
    I assume I have to have some sort of listener for this and somehow check within the listener ?

    Thanks for the help, but I tried it and see the following, when my GUI comes up and this listener is invoked (via the Send button), the box is not checked, yet it still returns a true statement....I don't understand why ?..Unless my syntax is wrong and I should be checking something else ?..
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class SendButtonListener implements ActionListener
         DrawGUI x;
         boolean test1;
         SendButtonListener(DrawGUI a)
         System.out.println
    ("SendButtonListener Constructor...");
         x = a;
         public void actionPerformed(ActionEvent e)
         test1 = x.chkTestbox.isSelected();
         if (true)
         System.out.println("True");
         else
         System.out.println("False");

  • Display splash screen while downloading applet jar file

    I've tried to search the forums, but most results I get are how to display a splash screen while the classes are loading. Unfortunately, the classes do not begin loading until after the jar file has been downloaded. How does one go about showing as splash screen as the jar file containing the classes is downloaded?
    Thanks for the help!

    "Java 5 provides a capability in this area"- Unfortunately, due to circumstances out of our control we are stuck on java 1.4.x.
    "How you do that is your problem."- I'm so glad I can count on the helpful java community. Thanks.
    Since it appears that "warnerja" is discusted by my question (mabye had a bad day) and is leaving me out in the cold, does anyone have any ideas on how I can implement her/his suggestion. I can break my jar file into multiple seperate jars and as each one loads I can update a progress bar. Unfortunately, I do not know where to begin with this code wise nor do I know if this is the best solution to this problem. I would think this to be a common problem.
    Thanks for your help!

  • How can i clear a screen in java applet?

    i'm searching a method to clear a applet completely before i repaint... i know that repaint normaly overwrite what was there before but bacause that was not allowed in my program i made de repaint just paint stuff...
    but now i'm searching a way to clear the aplet before i repaint something like clear()? does it exist?

    Do you override the update method? if so, don't. Update normally 1st clears, 2nd calls paint.
    Or you can call a g.drawRect(0,0,width,height) with the color of your background at the top of your paint() method.

  • Xml form screen scraper

    Hello,
    I have created a form with screen scrapers. Now I want to load it when I open the form of purchase orders through the creation of an XML file. Where mistake? Thanks
    Dim creationPackage As SAPbouiCOM.FormCreationParams
        Dim oItem As SAPbouiCOM.Item
        Dim oButton As SAPbouiCOM.Button
        Dim oStat As SAPbouiCOM.StaticText
        Dim oCompany As SAPbobsCOM.Company
        Dim lRetCode As Integer
        Dim msgbox As SAPbobsCOM.Message
        Dim oapplication As SAPbouiCOM.FormCreationParams
    Private Sub B1_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            If (pVal.MenuUID = "142") And (pVal.BeforeAction = False) Then
            End If
            LoadXMLForm("parametri.srf")
            If Not (oForm Is Nothing) Then
                creationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
                creationPackage.UniqueID = "BS_F_40"
                creationPackage.FormType = "-1"
                creationPackage.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
                creationPackage.XmlData = "form_mio.xml"
                oForm = SBO_Application.Forms.AddEx(creationPackage)
                oForm.AutoManaged = True
                oForm.SupportedModes = SAPbouiCOM.BoAutoFormMode.afm_All
                oForm.Mode = SAPbouiCOM.BoFormMode.fm_OK_MODE
                oForm.Visible = True
                ' Dim sfile As System.IO.FileStream
                LoadXMLForm("parametri.srf")
            End If
            ' Dim sfile As System.IO.FileStream
        End Sub
        Private Function LoadXMLForm(ByVal sFile As String) As Boolean
            Try
                Dim oXmlDoc As Xml.XmlDocument
                oXmlDoc = New Xml.XmlDocument
                Dim oCreationParams As SAPbouiCOM.FormCreationParams
                Dim s As String
                Try
                    s = "C:\Documents and Settings\neos\Desktop\screen painter\primo_form.srf"
                    oXMLDoc = New Xml.XmlDocument
                    oXMLDoc.load(s)
                    oCreationParams = oapplication.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
                    oCreationParams.XmlData = "form_mio.xml"
                    oApplication.Forms.AddEx(oCreationParams)
                    Return True
                Catch e As Exception
                    oApplication.MessageBox("Error: " & e.Message)
                    Return False
                End Try
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oCreationParams)
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oXMLDoc)
            Catch ex As Exception
                oApplication.MessageBox("Error: " & ex.Message)
            End Try
            GC.Collect()
        End Function

    Hi Lorenzo,
    Do one thing plz copy all the data from sample code and change the path and file name whatever you are using in your pgm only..
    if after all you get the error write the code..
    Kind Regards
    Yogesh

  • Discoverer Plus Applet - Cant get login screen

    Hi,
    I have discoverer 4i set up on Linux and Win 2000 with 9ias 1.0.2.2.
    The discoverer viewer works fine in both environment.
    The discoverer plus works fine with WIN 2000.
    However with Linux the applet does not bring the login screen. The applet continue to be displayed but is not navigable.
    Thanks
    Shailesh

    Hi,
    This happens due to the configuration of the browser and the java installed.
    First make sure the configuration in the browser are set correctly, pop up blocker disabled, lan setting do not prevent access to the discoverer server and son on...
    Try to remove any java version he has on the computer and install a fresh new JRE.
    Now try again.
    Tamir

  • Screen scraping mainframe terminal emulator/web page

    Hi,
    Is it possible to screen scrap the contents of mainframe Terminal emulator.
    I have a 3270 Terminal emulator. What is the best way to read the content of this terminal emulator.
    I'm aware that we can screen scrape static or dynamic web pages. But, is it possible to screen a
    terminal emulator. I have no clue reg this. Plz help.

    Thanks for your response DrClap!!
    But you would have to be working with a published interface, as I was. Does >>your 3270 emulator have a published interface that allows access to the >>screen display?We are using Bluezone terminal emulator (from seagull software). This Bluezone uses an ActiveX control or Java applet to download a Win32 emulation application.
    Given this scenario, plz let me know how do I screen scrap the contents of this terminal emulator and pass the screen scraped content to another java program.
    Plz help so that I go in the right direction.
    (For screen scraping web pages: I was using JTidy and XQuery. But, for this terminal emulator, how do i read the request url. I'm a beginner, so excuse me if I'm completely wrong with this approach).
    Thanks,
    Sid

  • Imitating the add() function without actually adding a Applet object

    Okay, I have an instance of an object that ultimately extends Applet (not JApplet). I want this applet to paint itself onto another instance of JFrame without adding (performing the add(component) method) the applet instance.
    Note though that if I do add the applet to the JFrame, the object is painted correctly and everything works fine. But for some reasons specific to me (that I don't want to go into details with), I do not want to add the applet.
    I would want to do something like this:
    Applet instance = /* my instance */
    JFrame frame = /* my frame */
    JPanel pane = new JPanel(new BorderLayout()) {
      public void paint(Graphics g) { instance.paint(g) }
      public void update(Graphics g) { instance.update(g) }
    frame.add(pane);Using the above concept, the frame doesn't get any painting. Exactly what does the add method do that I'm not imitating here? I've tried looking through the source and I don't see much changing of the actual instance. I also tried setting the parent of the applet (using reflect) to my JPanel (above example), but that did nothing. I tried doing that since I thought the applet may have uses the getGraphics() method for getting a graphics to draw with. BTW, I do not have source code to the Applet instance: I'm trying to make this dynamic.
    Thanks in advance for any support
    Message was edited by:
    khaoz
    null

    There are 2 problems I can think of:
    1. Calling paint on heavyweight components does no drawing to the graphics object. You can see this if you try to use the java print API to print a heavyweight button or something
    2. I'm not sure that calling paint on Applet causes the applets children to get drawn.
    Your best bet might be to use the java.awt.Robot, do a screen scrape of your applet and then draw that in your frame.

  • Outputting an int variable in an applet?

    Hey all i will keep this short, i am modifying an applet for a university project and am trying to output an integer variable to screen, i tried using g.drawString but i apparently can only use it to output "text in the double quotes" and if i try putting the variable in without the double quotes it throws an error, i was just wondering how would you output a int variable to screen in an applet, thanks

    To convert an int to a String, use:
    String.valueOf(int)

  • Screen resolution in 10G and converison from 6i

    Scenario is something like this:
    We are converting forms from 6i to 10G.
    We have designed forms in 6i for 1024x768 screen resolution. We don't have any issues in 6i for screen resolution of 1024x768.
    We converted the form to 10G. Screen resolution is still 1024x768 in 10G. We are using separateFrame=true in formsweb.cfg to make sure we don't show the Applet in browser window. separateFrame=true opens the application in new window and this new window can use entire screen resolution.
    Applet in new window is bigger than the screen resolution and we see scroll bars in main window when we open a child window. Obviously the applet is showing bigger footprint than client server form.
    Why is this so? Is there a way to fix this?

    If you will bring up a client-server form and a Web separate-frame form and compare them side-by-side, you can easily see the difference.
    The height and width of the actual space used by the form is identical. In fact, in my comparison, both window widths are exactly the same number of pixels. I used snagit to compare the sizes.
    However, if you compare the heights, you will see the difference. The web forms window has three bands above the actual Form canvas:
    1. The main window bar with the java icon on the left, window title, and the three windows icons for minimize, maximize and close.
    2. The pull-down menu choices on the left and the "Oracle" logo on the right. (Look-and-feel generic removes the Oracle logo, I believe.)
    3. The Window0 bar, blank except an icon on the left (right click shows Restore, Move, Size,... CLose) and an icon on the right, which clicking causes the inside window to maximize or restore.
    The Client/Server window has two bands:
    1. Main window bar, similar to 1 above, except the icon on the left is a Forms icon instead of java.
    2. Combination of 2 and 3 above: Contains both the icons in 3 above plus the pull-down menu choices. It is also about 8 pixels shorter than the web forms bar 2.
    In addition, comparing the bar with the message and status lines at the bottom of both versions, you can see that the web forms bar is about 9 more pixels higher.
    It is possible to position the Window0 at a y_pos of about -20 to regain some of the lost height (this causes the third bar described above to be hidden behind the second). But you cannot get all the height back, because of the additional height taken by Web Forms for the second bar and the bottom area.
    So what is left is to reduce the height of the canvas area used by your forms by about 20 pixels.
    I believe these heights are determined by the java runtime used by web forms rather than Oracle, so there is nothing Oracle can do about it.

  • Loading A Blank InfoBus Applet

    I have created an InfoBus Applet and am wondering if there is any way to load it blank(no data on sreen). By default, it executes the master query and brings the results to screen when the applet loads. Is there a property on the master rowset that needs to be set? What functions are available to rowset or sessionInfo which will allow the applet to load blank, and only execute the master query when the user queries via find dialog? Any help would be greatly appreciated.

    Hi,
      This could be a combination of numerous things, check the following
    - Flash Player version used
    - Internet Explorer (IE) version
    - How big is the flash file you trying to load. Try using a smaller version and see if it works. That way we can elimiate flash memory related.
        Make sure all are in the supported platform for Xcelsius 2008 (What Service Pack are you on?).
    Regards,
    Ken

  • Screen Scraping in Java

    Anybody help me on java screen scrapping.

    Svk wrote:
    I am asking the best way to screen Scrapping in java !!If you want to scrap your screen, take it to an electronics recycling.
    If you want to do screen scraping, you could provide some more detail about what you actually are trying to accomplish. Note: exclamation points aren't details.
    I'll bet what you want to do isn't even screen scraping. It's becoming increasingly rare these days.

Maybe you are looking for

  • How to extract data from BCS consolidation cube to Group BW extraction cube

    Gurus, I have to figure out a way to extract data from a local BCS consolidation totals cube to a group BW extraction cube via a virtual cube in between the too...How can i do the extraction and what are the different ways in which it can be done.. D

  • Flat file upload error message

    Hi Friends I have designed an infocube and when i try to load data after selecting the option of flat file upload, i get the following error message," You have no authorization for basic types(activity 03)". Please clarify what it means. regards kris

  • Projector and xml problem

    This is the problem : I've got 2 projectors. 1- start.exe // Gives the user language choice. 2- main.exe // main movie in the language choose by user. I've got xml image gallery in the main.exe , if i use start.exe to open main.exe the xml doesn't sh

  • How do I get my internet to work

    Can't get my internet to work on my s5

  • Long number in CSV file appearing in scientific notation by default

    Hi, How can I stop a long number in a CSV file that is opened in excel from appearing in scientific notation by default? eg. "hello","778002405501 ", "yes" becomes: hello | 7.78002E+11 | yes I have tried wrapping the data in quotes in the csv but to