I want to read a HTML document from internet

Is it i should use javax.swing.text.html.HTMLDocument?

Is it i should use javax.swing.text.html.HTMLDocument?What do the docs for that class say? Does it have methods for reading an HTML document from the internet?

Similar Messages

  • Reading a PDF document from my browser

    When I want to read a PDF document from my browser (Firefox), the document automatically gets downloaded and saved to My Documents.  Then I have to click on downloads or go the My Documents to read it. Then if I don;t want to save the document I have to do in a delete it. How can I just read the document from my browser without saving it?

    Firefox uses its own PDF viewer, not the Adobe Reader plugin; see http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • Opening help html documents from 10g form

    We are converting our 6i forms to 10g. I am trying to open my help html documents from the 10g forms. We have modified the httpd.conf file setting the DocumentRoot "/oracle/apps/aces/help". This is the path where my html documents reside. From the 10g forms I am using web.show_document to open the html documents. I am getting a Page not Found error. Is there somewhere else the help path needs to be set?
    Thanks!!
    Shellie Bricker

    The way i know is, putting some AliasMatch in the conf-file of Apache like
    AliasMatch ^/help/(..*) "C:\help/$1"And then use WEB.SHOW_DOCUMENT with this virtual path
    WEB.SHOW_DOCUMENT('//help/helpfile.html', '_blank');

  • New to apple with my  ipad 4 wanted to transfer pics and documents from dell computer is that possible and how?

    Happy Holidays I am a new Apple user with the i-pad 4 being my first product.  I wanted to transfer pics and documents from my windows computers.  I logged into the network but do not know how to access it using the i-pad.  Is this possible?  What is the best way to save photos to the icloud.  I have pics in windows "pictures" in my yahoo email and in facebook.  I am also a frequent user of MS word and excel.  What apple product would you recommend that I use so taht I can access and modify my documents?  Thanks!  Rosebud

    See this migrate iTunes library post.
    tt2

  • In order to transfer a document from Internet I am asked to save it first in my computer. In another PC I can simply open it. How can I do this in the former?

    In order to transfer a document from Internet in one of my computers, I am asked to save it first (in my computer). In another computer I am not asked to save it and I can simply open it. IO would like to have the possibility to simply open it on the first computer and save it only if I want.

    Difficult to understand why Disk Utility can be hard to find. It is listed in the Finder Menu/Services. You can also find it in your Applications Folder under Utilities.
    What Mac do you have and what version of OS X ?

  • Retrieving html text not html document from RichEditableText control

    Hi,
       I have some html text
    Ex- This is <b> test </b>
    which i am setting to RichEditableText using TextConvert.importToFlow(),I want to format this text just bold and italic and then get back  same html text back with
    only formatting i have done.
    Suppose i have formatted this text in RichEditableText like;
    Ex- This <i>is</i> <b> test</b>
    But when i am trying to get back this from RichEditableText using;
      TextConverter.export(richedittxt.textFlow,TextConverter.TEXT_FIELD_HTML_FORMAT,ConversionT ype.STRING_TYPE);
    It gives a complete html document with <html><body><font> tags, which i dont want. It should not includes all these extra tags.
    Can any one suggest, whether it is feasible or not ? Please reply if any one has solution
    Thanks..

    Leao,
    > I didn't write the original actionscript so I don't
    > really know how to implement what you suggested.
    Aha! Well, that can be a bit like painting yourself into a
    corner. ;)
    > Could you explain a little more?
    Spend a bit of time with the String class. Before you even
    do that, you
    may want to familiarize yourself with the concept of objects
    in general.
    See this introductory article ...
    http://www.quip.net/blog/2006/flash/actionscript-20/ojects-building-blocks
    ... then spend a bit of time in a completely new FLA
    experimenting with the
    String class. Many of its methods are specifically geared
    toward changing
    the value of the text content, including stripping away
    certain characters.
    e.g., you can use String.indexOf() to return the position of
    a particular
    character (or characters) in a string of text. You may then
    use that
    position in cahoots with String.substr() to return a new
    string that as been
    "pruned" of undesired content.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • HTML documents from Mac to Pad

    I have developed a series of HTML-CSS-JavaScript pages (kind of utilities) on my iMac, and I would like to have them on my newly purchased iPad.
    1. How do I transfer such documents from iMac to iPad?
    2. How do I open these documents with Safari on iPad?
    François

    Sorry,
    I was just reading steve jobs speech on why html5 should be used instead of flash, his big point was html just works the same everywhere so i want the web to stop using flash and switch to html so i can see it too.
    but why would say abc.com take down there flash stuff and replace it with html if the flash they made works everywhere except my device and html needs to be made for every browser.
    i dont like needing an app for every website and not all apps are free. i just want to surf the web like everyone else. and im now worried that my device is never going to be able to.
    I saw this guy watching abc.com right on his phone.
    http://www.youtube.com/watch?v=omBXttm-eec&feature=related
    Then I saw this guy showing how html for macs wont work on ipads
    http://www.youtube.com/watch?v=rfmbZkqORX4&feature=watchresponserev
    now im scared abc.com will never change their site for my device which only supports html, because html needs to be made again for everthing and flash works everywhere.

  • How to read the HTML code from a webpage

    Hi, I want to be able to read the HTML code of a web page
    In order to extract some info from some pages.
    How can I do that?
    is it using cl_http_client ? I played with that class a bit, but wih no sucess to what I need...

    Hi RagnaRock,
    You can use the following form, hope it helps you.
    Regards,
    Ozcan.
    form get_data_from_url using iv_url type clike changing iv_data type string.
    DATA: HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT .
      clear  iv_data.
      CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
           EXPORTING
            URL                = IV_URL
    *          PROXY_HOST         = '10.1.1.1'
    *          PROXY_SERVICE      = '1234'
    *       SSL_ID             =
           IMPORTING
             CLIENT             = HTTP_CLIENT
           EXCEPTIONS
             ARGUMENT_NOT_FOUND = 1
             PLUGIN_NOT_ACTIVE  = 2
             INTERNAL_ERROR     = 3
             OTHERS             = 4.
      CHECK SY-SUBRC = 0.
      CALL METHOD HTTP_CLIENT->SEND
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2.
      CHECK SY-SUBRC = 0.
      CALL METHOD HTTP_CLIENT->RECEIVE
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2
          HTTP_PROCESSING_FAILED     = 3.
      CHECK SY-SUBRC = 0.
      iv_data = HTTP_CLIENT->RESPONSE->GET_CDATA( ).
    endform.                    "get_data_from_url
    Edited by: Ozcan Gurdal on Aug 11, 2010 4:07 PM

  • Wanting to open a HTML document in users default browser using Menu Items

    I have a couple of Menu items that I want to open up various HTML documents.
    menuHelpItem.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent evt)
    });I've seen a couple of 'solutions' to people asking about opening files, but none even compiled never mind ran. It's in my parent program, and any solution needing to throw IOException (lots of things annoyingly seem to) that'll mean the listeners need to which never seems to work. Even if it did though, the class would have to and so would all the others. Messy.
    Best I've done is open up a new JEditorPane based on the url of the HTML files, but this is definately not good enough as the font, layout, links are all screwed and if I could fix it, it would no doubt take longer than I have.
    So basically, say you have a button, how do you make it open "resources/SearchHelp.html"?

    "http://www.google.com"; //
    Interesting. I changed my code to this:
    private void showHelp(String url)
         try
              String[] cmd = new String[5];
              cmd[0] = "cmd.exe";
              cmd[1] = "/C";
              cmd[2] = "rundll32";
              cmd[3] = "url.dll,FileProtocolHandler";
              cmd[4] = PronunciationDictionary.class.getResource(url).toString();
              Process process = Runtime.getRuntime().exec( cmd );
         catch (IOException e)
              JOptionPane.showMessageDialog(this, "Unable to load help file. Please try again.", "Help - Dictionary A'la Lewis", JOptionPane.INFORMATION_MESSAGE);
    }and I printed out PronunciationDictionary.class.getResource(url).toString(); before trying it and that worked fine. I click on the buttons but nothing happens, no error which is good, but nothing else either, which is bad. I thought maybe I was just doing it wrong, so I tried replacing it with just http://www.google.com but same thing, nothing happened at all.

  • Reading 9500 office documents from a computer

    Hello Friends,
    Please do not be supprised, i can't seem to be able to read off my office documents/excel documents from my 9500 communicator on my computer. Why? i don't know.
    I have alot of work i did on it that i need to transfer, i need your help.
    waiting, thanks.

    Hi, It is not your configuration, it is your phone. I have the same issue, I can not open Excel or Word documents in my PC. It seems that it is the phone that makes the conversion and it does a bad job.
    I have not find a simple solution for this or any help from Nokia site and not even a confirmation that there is a serious problem. In the features list they say that you can create Word and Excel compatible documents but no mention that it only works in your phone and you can not transfer your files back to PC.
    Upgrading phone might help or using Open Office in PC.
    I have a lot of documents in my 9500 and this uggly bug will be a show stopper for using the phone anymore. Maybe it is time to change phone model and maybe I select a simplier model as I do not want to pay for broken promises.

  • XML-Document from Internet via HTML-Control?

    Hi everybody,
    I would like to access an XML-document from the internet via a HTML-Control and save it in an ABAP XSTRING-Type so i can use the "call Transformation" in order to save it in an ABAP-Table. Is that possible?? or I have to use XI to access such XML-documents.
    Thanks
    Ihssan

    Hello Mr Raja,
    your answer was helpful. There is no problem by accessing XML data from 'http://'-address. But if i try to access the xml data from 'https://'-address it doesn't work. Of course i used a https sheme type.
    Is there problems by getting data from https??
    thanks in advance
    Ihssan
    p.s.: sap_basis release 6.20

  • Interacting with html documents from flash

    Hi,
    I'm a newbie in actionscript. I created a world map in flash. The map has regions (Europe, North America, Latin America, etc.). The regions on the map are defined as buttons.
    The final flash map will be embedded in an html document (map.html). The idea is that when you click for example the "Europe" button on the flash movie, this will open an html document called Europe.html and will show it underneath the map flash (inside map.html).
    The "Europe.html" for example contains a list of countries.
    In this mission I have 2 problems:
    1.       What script I have to attach to every region button on the flash map so it will call the right html file into the div on the map.html?
    2.       What script do I have to put inside the html document?
    Any help will be much appreciated. thank you
    Arie M.

    assign your button an instance name (in the properties panel after selecting your button) and use that name in the actions panel:
    yourbutton.addEventListener(MouseEvent.CLICK,f);
    function f(e:MouseEvent):void{
    navigateToURL(new URLRequest("map.html"),"youriframe")

  • Application to read 2 log files from internet

    Hi,
    Anybody could tell me how to develop this project. I'm lack of time. thanks
    You have been asked into a company called Broken Arrow Software as a Senior Software Engineer and Management consultant. You are being paid very handsomely and have been asked to write an application program in Java for parsing a log file.
    � The program will have a standard menu using the AWT only.
    � ALL LAYOUTS MUST USE ONLY THE BORDER-LAYOUT OR GRID-LAYOUT OR A COMBINATION OF BOTH (Any other layouts score zero).
    This application reads two Log files from the internet. The first file contains USA state names and the abbreviation used for that state. This information will be used in displaying totals from another network file and should be stored in an array (or two arrays, or a two dimensional array) in the program. The second file should extract the �Reversed subdomain� section from a Log file (a section is shown later) and store this in an array in the application. This should be processed and only those domains beginning with �us.� should be processed. Each �us.� Has an abbreviated USA state after it (�tx� is an abbreviation for Texas). The abbreviations are sorted and all states are on consecutive lines and each displays a number of accesses for that state. The accesses should be totalled and displayed in the current Frame for each state in the form of Java List components (these do not need to be synchronised so that they all scroll in unison).
    The application will be a Java application with the following menus and MenuItems:
    � Splash screen (10%)
    � Application (20%)
    o Open USA abbreviation file
    o Clear screen
    o Exit
    � File (25%)
    o Open network log file
    o Open locally saved report file
    o Recent report files
    o Save as report file
    � Graph (20%)
    o Plot
    � Help (15%)
    o Help on Application
    o About
    A basic pass for the application will be for a basic implementation of an application with �help� options and some basic implementations of a Splash screen and some basic file and application options. Very high marks will be awarded for processing network files, saving and opening files, very good HCI, application design and error handling, excellent OO design for classes, gorgeous layout and commenting of code and excellent graphing capabilities.
    Error handling dialogs and overall application design (10%)
    Every class must be in a separate file.
    Inheritance should be used for WindowListeners of Frames and Dialogs.
    Up to 10% can also be lost by unprofessional code layout and lack of professional standards. Always adhere to standards taught throughout the module and your time at the University of Northumbria.
    Examples of non-professionalism would include bad indentation, no comments, meaningless variable names, politically incorrect graphics, commented out code, empty .java files, .java files which are not part of the project etc. Remember your application is your livelihood and your company depends on your application standards.
    The splash screen must be a Frame with a Canvas as part of it showing your own logo. Your logo should be individual to you but does not need to win the computing equivalent of the Turner prize. The application should be displayed behind the Splash screen and both should be visible. The application must not be able to be brought to the front and used without the Splash screen being disposed of.
    The application should only enable the �Open USA abbreviation file�, �Open locally saved report file�, �Help� options and �Exit� Menus and MenuItems, when the application starts. On opening a valid USA abbreviation file, then the other Menus and MenuItems should be enabled.
    The abbreviations should be read into an array. These should be used in displaying the totals for the reversed subdomain totals for each USA state. A total for all USA states should be displayed at the bottom of the current Frame, with a suitable Label (this design is your own). This current Frame should display a series of Lists starting with a List of USA state number (1 to n). A List of USA state abbreviation should be next followed by a List of the actual USA state name, followed by a List of the total accesses for that state.
    The report file should be an ASCII file that can be printed out from an ASCII text editor such as DOS edit or Microsoft NotePad.
    The �Open� network files should display a Dialog asking for the http:// address of the file, with �OK� and �Cancel� options. It is helpful if the user can hit �return� instead of clicking on �OK� and �Escape� instead of �cancel�. Error Dialogs should be used to indicate any errors that may occur and the state of the application should be reset to that of before displaying the Dialog.
    When �Save as report file� is chosen a FileDialog box should be used for the user to choose both directory and filename. The file should be able to be saved as a �.rpt� file.
    Open report file should display the report in a Frame; the design of which is your own.
    Plotting the graph should pass a two dimensional array to a Frame with a Canvas. The Canvas should have a Paint method that draws the axis for the graph and any suitable Headings etc. The graph should draw a histogram of totals per USA states. The graph design is your own but you may wish to use Microsoft Excel as a good example of drawing a histogram.
    The �Clear screen� option should clear any data off the current screen.
    The �Exit� option should quit the application but it may be helpful to ask the user if they really want to exit the application.
    Help must be Java code and not linking into HTML. It should display help in a well designed screen. The most basic implementation might use a scrollable TextArea for a basic mark.
    See other software for a good �About� screen. The most basic should display your name, date, version and company.
    � Help should display your help on using the application. As a senior software engineer, the design is your own, based on experience of using applications, as is the opening splash screen. You may use other applications for inspiration only, as these will make up your experience.
    � Your good knowledge gained from HCI units studied should prove invaluable in the interface design and the usability of the application.
    � The design (Screens and classes) and quality and documentation of code throughout the application will be marked. The experience gained from programming 1 and 2 and Object Oriented Programming should prove invaluable throughout the application, as should any GUI units studied.
    The log file can be accessed at:
    http://computing.unn.ac.uk/staff/cgpb2/public_html/log.html

    You would really gain ever so much more from this exercise if you would write a couple of classes, then come back with some specific questions. If you're completely lost, try starting with the GUI first. It's not the best practice, always, but it is easy to visualize.
    On a side note, I wish I'd had assignments even half this intersting when I was in my Java classes...

  • Printer will not print word documents or documents from internet however does a test print

    My printer will not print word documents or documents from the internet.  However it does complete a test print.  I have uninstalled and reinstalled printer.  I have disabled and enbled the firewall and have run the test doctor programme, which has been unable to identify any problems.  I have a HP deskjet 3050A all in one J611 series printer.

    Sorry that you are having a problem with printing word documents and internet. 
    Are you connected USB or wireless?
    You can try to download an alternative driver and check to see if that works. (Shane_R) has a great post on how to do so. 
    The deskjet 990c is usually the better one. 
    http://h30434.www3.hp.com/t5/Printer-All-in-One-So​ftware-Drivers-e-g-Windows-8/How-to-Assign-Alterna​...
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • HP Deskjet2540 - only part prints documents from internet then gives up

    I have recently installed a HP Deskjet 2540 All-in-One Series Printer on my home network. If I print from Word or Excel it is perfect. If I try to print a 2 page document from a website (eg a hotel I'm considering for a holiday), my printer prints about a quarter of one page and then gives up. and ejects that page. I don't understand what's wrong or how to get help from HP

    Hi @GeoffR1 ,
    I see that you are having issues printing the full pages from the internet. I would like to help you out today.
    I would try another browser to see if you have the same results.  (Chrome, Firefox, Safari, Internet Explorer)
    What web browser are you using?
    With most web sites with loads of ads, pictures, banners and other assorted content in addition to the actual text of each page, printing out a web page can be difficult. Printers don't always print multi-item pages correctly.  Some sites offer a "print this page" option. It could be the format of the website also, that won't allow specific content to be printed.
    You could always copy and paste individual paragraphs from the web browser into Word or Notepad and print from there. Not the best resolution, but it will do in a crisis.
    Here is a website called www.printwhatyoulike.com and on the home page, enter the address of the page that you want to print. You can now click around the loaded web page and highlight, or delete altogether, individual components on the page. Then select print.
    Have a great weekend!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

Maybe you are looking for

  • IPod touch apps will not open

    my brothers iPod touch will not open up app store apps. we have tried to reset the iPod, but the apps still not open. it looks like the apps are trying to open, but something is stopping them form doing that. what can we do????

  • Is it possible to view/get the table data from a dump file

    I have dmp files generated using expdp on oracle 11g.. expdp_schemas_18MAY2013_1.dmp expdp_schemas_18MAY2013_2.dmp expdp_schemas_18MAY2013_3.dmp Can I use a parameter file given below to get the table data in to the sql file or impdp the only option

  • Iweb 08 and email links

    I've uploaded my site to dogbark and now the email link ( where you say "email me") on each page won't work. Apparently ,the email address box is coming up on the hose at an html code and not an email link. However, when I hyper linked "email me" I l

  • Magic Mouse Right Click Stopped Working

    My magic mouse is acting up, the secondary right click has stopped working, if you select left click it will work but not right click. i have changed the battereis, restarted my mac, turned the mouse on and off but no joy, the left click just wont wo

  • Migration of Time Machine backup files to new Mac

    I am the proud owner of a new iMac which is replacing an old 2006 model. I have 2 external hard drives which I have now connected to the new computer, I used to back these up using TM on my old mac. Can I migrate those backup files to the new mac so