Taking regular text from a saved web page through java.

Hello, currently I'm trying to save the source code from a regular HTML web page as a string. Which in fairness is pretty simple through the URL and InputStreamReader classes.
But my problem is I'm not fully sure how to save the source code when the page is saved on your hard drive, as the (i think) URL class tries to look for a non-existant host.
I think I need to use the HTMLEditor class but my knowledge of this is vague at best.
Any ideas?
Also I''m just trying to take out the regular text from the page (ie. what you see on the screen) and store that, is there any way specifically I should go about this? As I doubt it's going through the entire string and looking for specific tags to remove.
Thanks in advance

Yes, I need to calm down. That worked me up a bit, I'l admit.
Oh, I'm with you 100%. Ipad is a nice 'accessory' to a PC or Mac. No replacement, by far.
I didn't share this, but I think it was in a frame or apart of a link. The ipad wanted to follow the link. At the other page was the same info. Still, I could not select it.
The ipad2 has dual processors. Do you think that could make a difference?
I was advised once to re-boot my cell-phone often. To clear it's memory. Does the Ipad need this as well?
I can select all day long while in this text edit box. But if I wanted to quote you by copy/paste, I cannot. Interesting. And it is right above and on the same page I am working on.
Definitely an area for improvement.

Similar Messages

  • JSF - Read a text file and diplay lines of text data on the web page

    Hello,
    For one of my projects, I need to display lines of text data on the web page using Java Server Faces Technology. The raw data could be from simple text files or sockets or anything. (Getting the data is not my issue but displaying is). Could anybody send answers with sample code. In servlet, one could do this by -
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException{
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println(DATA);
    out.println(DATA);
    out.println("</html>");
    I am looking for similar solution.
    Thanks in advance
    DK

    Thanks mjolinor.  Works great!
    Two questions.
    1. Could you plz suggest how this could be modified so this code would read the file in or accept it from the pipeline instead of wrapping the (@' around the data?
    2. Could you plz briefly describe some of the details of the code so I can further research and understand.
    Thanks for your help.
    Thanks for your help! SdeDot
    1. It already reads in the file.  The (@' .. '@) bits are just there to create a file using your test data to demonstrate that it works.
    2.  Not user what kind of "details" you want.  There really isn't much there, and get-help on the cmdlets used should provide information on what's going on with them in that script.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • How to copy and paste text from one photo book page to another.

    hello,i downloaded this software 2days ago,and i've been having so much fun with it. pls i need help on how to copy and paste text from one photo book page to another. Secondly how to copy my completed photo book pages project to another laptop for printing. thanks
    This question was solved.
    View Solution.

    Hi DG.
    The easiest way to copy an HP Photo Creations project to another computer is to click the Share button. That will upload the project to the Web and give you a link you can paste into an email. Clicking the link on the other computer allows you to download the project and personalize it. This quick video shows the process. (The screen looks slightly different now, but the concept is the same.)
    Another way to share a project is copy the project folder to a thumb drive. Look in Documents/HP Photo Creations/My Things to find your saved projects.
    Our customer support team would be happy to walk you through the process. Contact them at [email protected]
    Hope this helps,
    RocketLife 
    RocketLife, developer of HP Photo Creations
    » Visit the HP Photo Creations Facebook page — news, tips, and inspiration
    » See the HP Photo Creations video tours — cool tips in under 2 minutes
    » Contact Customer Support — get answers from the experts

  • I saved web page as html file, but can't open saved file as web page

    I did a FILE, SAVE PAGE AS, then chose 'WEB PAGE COMPLETE' - and a directory is created on my hard drive - with the directory name, for example - "c:\....\Ask a Question _ Mozilla Support.htm". (for this web page).
    When I try to open the saved web page from Firefox, using FILE, OPEN, I see a new window that looks like a file manager window, I then select that saved .html file and click OPEN, and a new window opens that looks like file manager - displaying with all the files in that directory - "Ask a Question _ Mozilla Support.htm". That is, it does not open and dislpay the web page as I expect it should (that I saved earlier).
    However, if I go to the file manager, I can see that directory is saved, and has the Windows Explorer icon associated with the directory "ask a question ....html", and also has a file type of HTML listed. If I double click that directory in file manager, Windows Explorer will open that directory and dis[play it as a web page, as I expected.
    I would like to know why Firefox does not open the directory name as a web page from the FILE, OPEN command, but instead shows me the directory contents(all the files in that directory)?
    BTW, if I try FILE, OPEN, using Windows Explorer the same thing happens - it opens a new window listing all the files in that directory.
    Is this the way the FILE, OPEN is supposed to work?
    It seems confusing, because if I am in any other program, for example WinWord, and do a FILE, OPEN command on a Word file, it opens the file as a Word Document - it does not just show the file in a "file manager window.
    But when I click FILE, OPEN on an HTML file(directory using Firefox, it does not open that html directory as a web page?

    I am in the Windows Explorer 'Details' view, and I see the folder with 'Type' of FILE FOLDER. In that folder are all the .js and .css and .png files - as cor-el said.
    ''But now I also see'' that there is also an htm file - ''with the exact same name ''as the folder, but it has a 'Type' of 'HTML Document'. When I have Firefox do a File, Open on the HTML Document - it does open the web page that I saved and does display it as a web page.
    I did not realize that Firefox saves both:
    1) a Directory '''(Type 'File Folder') '''''', and,
    2) an html file''' (Type 'HTML Document')
    ... '''and that they are the exact same names! '''
    I was clicking on the wrong one! Instead of clicking in the .html file, I was incorrectly clicking on the folder!
    (The archive add on looks interesting, but shouldn't I be able to open the saved web page, from the browser, using File, Open File) ?

  • Safari (7.0.6) on my iMac running Mavericks (10.9.4) is not saving web pages (web archives)

    Hi.  Not familiar with forums but hope to get some help.
    Safari (7.0.6) on my iMac running Mavericks (10.9.4) is not saving web pages (web archives).
    I've used the following path:
    File > Save As >then Format > Web Archive 
    It saves a file but when I click on its icon it opens up to the 'Top Sites' page (as when you click on the + for a new tab) not a saved web archive of the web page I was on.
    I have no such problem with Safari on my MacBook Pro running Lion. 
    The iMac hardware details are: 2.7 Gz Intel Core i5 with 8 gb of RAM .  The software update tells me I'm up to date.
    Any help would be much appreciated.  Thanks in advance. 
    Errol.

    It could be malware that's causing the archive /  Top Sites problem.
    Download and run the adware removal tool here >   The Safe Mac » Adware Removal Guide
    Easy, safe, and only takes a minute or two.
    If no malware is found ...
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • How do I view a saved web page?

    I saved a web page by clicking on File; Save Page as; and then saving it as a web page. This created a folder, which contained a large number of files, but when I try to open the folder, it simply opens the folder in Windows Explorer, and does not bring the saved web page up in Firefox.
    Am I doing something wrong?
    I installed the "Read it Later" plugin and it seems to work, but I would prefer to be able to save and view the web page directly with Firefox.

    I do not use Windows 7 or the "Read it later" plugin, but will add a general comment.
    The web page you save is likely to consist of a folder of many files and a main file with the extension .htm or html. the .htm or .html file is the one you need to open with a browser. I imagine if firefox is your default browser such files will show as a firefox icon. I also imagine that it is possible to set Windows 7 to specifically show file extensions, that is to show the .htm or .html part of the filename.

  • Saved Web Pages No Longer Display Any Graphics

    Hi all - is there a setting in Safari Prefs, or maybe in System Prefs to ensure that when re-opened, a saved web page (in Web Archive format) displays photographs and other graphics? Mine now show only blue boxes with question-marks, even when opened immediately after Saving As. Obviously some setting has changed.
    Any ideas? Hopefully a simple solution.

    Thank you Charlie.
    In going through the properties for the website in IIS and looking at the extensions, we found that at some point .htm and .html pages had been set to display as .aspx.  However in the upgrade, Coldfusion added a 'wildcard' to those extensions using Coldfusion 9.  We simply deleted those extensions (to match our development server, which did not have entries for them) and that solved the problem.  In other words, I think the website was confused.
    Christina

  • HT1338 I have an iMac with version 10.5.8 Mac OS X, can i upgrade to the latest Mountain Lion S X from the Apple web page.

    I have an iMac with version 10.5.8 Mac OS X, can i upgrade to the latest Mountain Lion S X from the Apple web page.
    When I tried, it said I had to have 10.6 or later............how do I get there?

    No. You need to phone the online Apple Store and order Mac OS X 10.6 on DVD.
    (71007)

  • Saving web pages direclty in MMC card

    how to save directly web pages into memory card in Nokia 6680 as its not asking the option while saving a web page?
    Even i dont have option to transfer saved web pages to MMC card,Please help!!

    no you cannot move it. on the contrary, you can add the page to bookmarks instead of saving it.
    Click on KUDOS to appreciate our efforts and mark the thread RESOLVED if your issue is resolved.

  • Invoking a Crystal Report stored on a BOXI3.1 server from a remote web page

    We would like to run Crystal Reports stored on our BOXI 3.1 server directly from an in-house intranet website written in ASP.Net. Is there a recommended way of achieving this?
    Some possible options we are considering are:
    1) A pop-up window opens with InfoView loaded and showing the correct report already open. The user would then populate the parameters and submit the report as if they had logged into InfoView and navigated to the report themselves.
    2) We write our own BOXI Crystal Report submission page in ASP.Net. This page would call the BusinessObjects Enterprise .NET SDK to retrieve the report parameter information and submit the report. This page would need to support Static, Dynamic, and Cascading report parameters.
    3) Use some sort of 3rd party or SAP imbedded Web Component that we can place on our intranet site that interfaces with the BOXI server and supports parameter setting and report submission. This Component would allow users to specify Static, Dynamic, or Cascading report parameters.
    Ideally we would prefer option 3 as this would be simplest to implement, however Iu2019m not sure such a component exists.
    Do SAP have a recommended solution for invoking a Crystal Report stored on a BOXI 3.1 server from a remote web page?
    Regards,
    -Paul
    Business Objects Version XI R3.1
    SQL Server

    Hi Paul,
    there are several options:
    - you could open InfoView via URL and the user navigates to the report
    - you could create you own application
    but the easiest way is an application called OpenDocument that is available out of the box which allows you to pass in several URL parameter and in that way you could open up the report.
    when you go to help.sap.com and go to the BusinessObjects area search for OpenDocument and you will find the documentation with the details.
    ingo

  • Unable to send web content emails from mail as web page since upgrading to the new OS X 10.9

    I am no longer able to send web content emails from mail as web page. The images / layout no longer transmit. This started when I upgraded to the new OS X 10.9. The emails appear correctly in the orginal message prior to sending but once they are sent all the images and layout are removed. The sent message folder shows the emails in the changed versions vs what the draft showed prior to sending. If the webpage is only an image my final sent message will only show an empty box with an question mark.

    Hold down the option key and select
     ▹ System Information...
    from the menu bar. In the window that opens, select
    Hardware ▹ USB
    from the list on the left. On the right you should now see a list of all connected USB devices, as well as some built-in components. Is the device shown?

  • Saving web pages to a file

    Is there any way of saving web pages to a file on the N97?
    Most browsers that I know have this functionality, but not the Nokia browser. I installed the Opera browser, which allows you to do this, but as it's impossible to change the default web browser on the N97, you can't use it to open links in messages.
    Saving as a bookmark isn't any good, as that only saves the URL, not the page.

    coolbelief
    that is certainly the way to change the web browser, i had wondered how to do that.
    now all i have to do is be adventurous and Change It.
    Opera Mobile is so easy to use and works well
      settings>Phone>Application sett.>Default apps.>Browsing internet>Web (by default) and you can change it to Opera Mobile (if already installed)
    me 3310 6300 N97
    son N95 HTC magic
    son 6300 N95 E63

  • How do i send the username and password to yahoo web page through url

    how do i send the username and password to yahoo web page through url i.e as Query string so that my account in yahoo will open...

    If you don't mind using a library, then download and use the Apache HttpClient library. It takes care of all these details for you.

  • I updated to os x 10.8.5 today and now I cannot publish changes to my web page through iweb.  iweb crashes every time I try to publish

    I updated to os x 10.8.5 today and now I cannot publish changes to my web page through iweb.  iweb crashes every time I try to publish

    First do the following:
    1 - delete the iWeb preference file, com.apple.iWeb.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iWeb's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iWeb folder (Snow Leopard and Earlier).
    NOTE:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    Next, in Lion and Mountain Lion the Home/Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and press the Return key - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or Mountain Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file in your Home/Library/Application Support/iWeb folder that you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • How to embed 3D models in web page using JAVA?

    Hello
    I'm doing a project at University to create a virtual tour of a village. I am creating the buildings in MAYA using polygon planes and cubes and then exporting to VRML.
    I plan to embed each individual model into a separate web page. Then when the user clicks on a location in a 2D map they will be taken to the web page containing that building.
    However, I can't work out how to embed these 3D models into web pages using JAVA. Can anyone help me with this, please?
    Also, I've been told to use JAVA 3D to interact with the project but am unclear as to how JAVA 3D would be used in this project - aqny ideas/suggestions welcome!
    M.

    If you use Java-plugin, you can embed Java3D in a web page.
    Here is the URL(http://www.geovista.psu.edu/products/demos/LorenzAttractor3D/index.html) which used Java3D.
    I hope this helps.
    Masa

Maybe you are looking for