How to copy a page webpage into a local file (for eg C:\\file.doc)

Hello all,
i wrote a programm code which can get my system information (date,tomcatversion,jdk version, server name and version and ...)
if navigate to the url (on my localserver) htt://localhost/pp/version.jsp i would see all this in formation but how can i copy them into to a local file?
i can create the file with: FileWriter fw = new FileWriter("C:\\file.doc");
and copy this information line by line with:
fw.write("Application server name and version:");
fw.write(application.getServerInfo());
fw.write("\n");
But if i write fw.write(new java.util.Date()) // for the system date/time it doesn't work also fw.write(java.util.Date()) ) or fw.write(Date())
or Date da = Date() and fw.write(da) no result...
import are:
<%@page import="java.io.*" %>
<%@page import="java.util.*" %>
please help....

thanks !! what does this means ? It is possible or no yes yes i need i syntax or an example ... i'm new in java :)

Similar Messages

  • How to copy the source webpage into the affiliatewebpage by the his nicknam

    Hai,
    I have a problem while doing the Affiliate program project
    This is a project where the administrator maintains the base sales page.Here the users who wants to join as a members into the base website becomes as Affiliates.
         It is an Affiliate System that uploads onto an existing shared webserver. This software copies a source webpage that creates and renames it into the affiliate nickname. There must be a webpage for the affiliates to sign up, administration for revoking and checking affiliates orders.
    When the Affiliates are register into the base website then the entire base sales is copied into the Affliate nickname website.
    Here I got the actual problem that how to copy all the folders of base sales page into the affiliate sales page ie Affiliate webpage. It should be automatically created and send through the mail to the affiliates.
    I am developing this project using jsp. Can anyone help me how to write the code for this problem
    Thank you,
    sri

    thanks !! what does this means ? It is possible or no yes yes i need i syntax or an example ... i'm new in java :)

  • How to copy a page( webpart page) with its content using client side.

    How to copy a page(in my case  webpart page) with its content(it may contain webparts) using client code (i mean using SPservices or ECMA script).
    What i am planning is ,to give end user a page where it will contain text box to specify  name of page and a button with the help of  content editor webpart.
    where on click of button we need to write client side code such that it should create a new page from a existing page in a library with given name by user.
    Any suggestion would be helpful. For your information we can do it through UI with the help Site Actions / Manage Content and Structure.But i want to automate it using client side code.Server side code is restricted.
    or can we create a template of an existing page with content without the help of sharepoint designer.
    Thanks in advance
    with regards Ravichandra

    This is good example
    http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/
    Create web service
    http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/. Create method "Create Page" http://www.learningsharepoint.com/2010/09/17/create-publishing-pages-sharepoint-2010-programmatically/
    Build your Java Script. You can use Content Editor Web Part if you want to avoid custom web part development http://www.codeproject.com/Articles/544538/JQuery-with-SharePoint
    Oleg

  • How  to  copy  the  table1selected  records into table 2 in webdynpro java.

    Hi 
           how  to  copy  the  table1selected  records into table 2 in webdynpro java.
    venkat
    Edited by: venkatpvr on Sep 23, 2011 11:53 AM

    Hi Venkat,
    You have 2 Value Nodes one for Table1 and second for Table2.
    Table1 node having one more Value Attribute i.e check Box data type is Boolean. Now you are requirement are select records from Table1 Node and click on One Method that records will moves to Second Table2 Node.
    Create One Method for getting the Records from 1-Table to 2-Table
    CopytoTable2 ()
    In this method you have to write code like this
    If (wdContext.nodeTable1.Checkbox(true))
    If(1. Check the Table1 Value Node Size()>0)
    Get the Table1 records and set to table2 Value node.
    Else
    Please select check box// Error message
    Hope this helps!!
    Regards
    Vijay K

  • How to copy complete internal table into main dababase table

    please tell me how to copy complete internal table into main dababase table by overwriting all the entries of the main DBtable.

    HI,
    you can use<b> Insert Or  Modify statement ..</b>
    <b>Modify updates the existing record, insert creates a new one. ...</b>
    insert ZDBTAB from table itab.
    Modify ZDBTAB from table Itab.
    The structure of itab should be exactly the same as the z table.
    You should not update standard tables directly though.
    rewards if usefuyl
    regards,
    nazeer

  • How do I export Pages document into iPhoto

    How do I export Pages document into iPhoto?

    Hi PhilipFG and FoxFifth,
    I've been using the same process Pages > PDF > iPhoto.  However, when it gets to iPhoto there's a lot of waiting around time for it to allow me to do anything i.e. cropping, enhancing.  The little coloured ball is just turning and turning. It's not happy to be there!  There is a big difference (it appears) in the resolution when it ends up in iPhoto using this process.  The images have shadows.  My business partner has an older Mac and can export directly to iPhoto from Pages without having to create a PDF first.  Perhaps this is just an option on the older one but she now can't open the pages file I send to her either.  Besides the fact that she clearly needs a new Mac...has anyone any further updates on what else can be done to export directly to iPhoto?  TIA

  • How can I convert page points into document points??

    Hello,
    How can I convert page points into document points? any API?
    I have found 2 APIs
    AIDocumentViewSuite::ArtworkPointToViewPoint( ) and
    AIDocumentViewSuite::ViewPointToArtworkPoint( )
    but I dont know what is view point and art work point.
    I think artwork point = page points and view points = document points. am I correct ???

    What do you mean by 'document points'? Do you mean document units? Like centimeters or inches? If that, there's no API to do (well, kind of in AIUser.h, but that gives you back a string with a unit suffix). Frankly, its pretty easy to just figure out the conversion values for each type of ruler unit -- there are only five or so you need -- and then write a dinky function that takes a value in one or the other, looks up the current document unit and uses that to convert the value (one function for each way). You just need to figure out everything in terms of points (since pixels == points) -- in that regard, it probably helps to know that 72 pt == 1 inch. From that you can figure out pointer-per-inch|centimeter|millimeter|pica.

  • How to convert an NWDI project into a Local project?

    Hi Experts,
    Please tell me " how to convert an NWDI project into a Local project? "
    If you c

    Hi Srini
    1. Copy/Paste Webdynpro components in the new project as was suggested before
    2. Or create new project, copy _comp folder from old project to the new one. But, do not forget to update .dcdef & .project files manually after this. You have to set the correct project name in .dcdef and set the correct local project path in .project.
    BR, Sergei

  • How do you import RSS feeds into FF? (i have exported OPML file out of IE8 but can't find import option for feeds in FF)

    how do you import RSS feeds into FF? i have exported opml file out of IE8 but can't find how to import this into FF?

    See OPML Support: https://addons.mozilla.org/firefox/addon/2625

  • Converting a pages document into a .jpg image for web

    I am trying to convert a pages document into a .jpg image for uploading to idisk. When I drag to iphoto, then export, the image is really small even when I use the large size on the jpg photo export. Is there an easy way to do this..... I am trying to upload it to idisk then link it to craigslist.
    Help! It worked a couple of months ago!
    Thanks
    John

    A better way (I think) is to export or Print your Pages document as a PDF & open that PDF in Preview. Use the selection tool to select the area you want. You can crop & save as .jpg, but I recommend going to the File menu in Preview & choosing New From Clipboard to make a new file. This is because some programs, Pages in particular, will always "see" the unselected area & paste the whole thing. I also suggest using .png rather than .jpg. .jpg is a "lossy" format, .png will be much clearer.

  • How can I add page turn animation to my iBooks Author 2.2 file? Can I add html / a plugin?

    How can I add page turn animation to my iBooks Author 2.2 file? Can I add html / a plugin?

    I concur with Tom. That feature is not available with iBooks. If the page turning effect is important, you could consider developing a fixed layout Epub 3 instead.

  • When I try to import files from iMac HDD into the event, it fails. FCPX dosn't see this files for import. Files are *.m2ts and *.mpg. Should I buy plagin Quicktime component MPEG-2 to resolve a problem?

    When I try to import files from iMac HDD into the event, it fails. FCPX dosn't see this files for import. Files are *.m2ts and *.mpg. Should I buy plagin Quicktime component MPEG-2 to resolve a problem?

    no you should transcode those files into an format that os suitable for editing. Like proRez. Although you might need some Flip4Mac or perian or something to do the conversion.
    adam

  • How can I [cmd]+A including text boxes? Or how to import one Pages document into another Pages document?

    Hi there,
    I am working on my thesis with several Pages documents (for the first time). And I really have searched all over the Internet to find an answer to exactly my question but I cannot find it.
    First my question was: How can I import one Pages document into another one? I found the answer on that (I think) and there is nothing else than just make a new section and copy/paste it in.
    But then another issue pops up: I cannot [cmd]+A my whole document including the texboxes to paste it in the other Pages document. Then the document will be paste without the textboxes (and I have quite a lot of them in that document) and the text will not be at the right place.
    So please explain to me: How I can combine two Pages documents and keep them exactly the way they are? Is that even possible?
    I thank you so much in advance!

    Hi Fruhulda,
    I have already tried to mark the textboxes in line but that did not work, and besides then the text and the boxes won't be at the rigt places either. Thank you for your reply .

  • How to copy the table datas into an  open office excel file .

    Hello All ,
    I have a form which contains several pages . Each page contains some tables in it . How can we copy each table datas into an open office execl files ??
    I mean there will be several excel files each file corresponds to a particular table in the form. I am using LiveCycle Designer ES 2 . in Windows XP.
    Thanks
    Bibhu.

    Hi Bibhu,
    Here is a screenshot of exporting the form data to XML:
    I have not imported XML into Excel, but I know that Excel 2007 has tools for this in the Developer tab. I don't have Excel 2007 on this machine, so I can't get screenshots. However using Acrobat you can merge the XML file into a spreadsheet, using the same menu Forms > Manage Form Data > Merge Data Files into Spreadsheet.
    In addition you can set up a data connection to the spreadsheet. However this will only work in a Windows environment and you need to share the OLEDB data connection with all users. In addition if you Reader Enable the form with Acrobat, the data connection will not work.
    So on balance if you want to get data to a spreadsheet I would recommend export XML.
    Hope that helps,
    Niall

  • How to insert a pages document into another pages document?

    How can I insert a pages document into another one?
    How can I insert 1 page of a document into another document?

    Open your files & show thumbnails. Sections have a yellow border around all of the pages in that section. Now click on the page in the thumbnail pane & copy. If the file is more than one page & you only want one, you'll need to insert a section break to separate the pages. Then go to your other file, click in the thumbnail pane & paste. The whole copied page will be pasted in. Repeat with another section. Styles will copy over with the sections but headers & footers will not.

Maybe you are looking for

  • Why can't I download an older version of Pages from the App Store?

    Is there any way to download an older version of Pages? Specifically, version 4.2? Upgrading my OS from 10.6.8 is not an option, and I live overseas in a place where I'm completely unable to recieve disks for older iWorks through the mail. This is fr

  • How to use two jdk versions in one system.

    Hi All, Am working for two projects, in one i have to use jdk1.4 and in the second i have to use jdk1.5, how can i have two jdk in one system, am using windows xp, in that if i create two accounts and install two jdk's will it accept? what is the sol

  • Item Cost as Base Price in calculating gross profit

    Hi All, We're using FIFO as item evaluation method. If "Item Cost" has been set up as the base price origin for gross profit, where does SB1 get the value for the gross profit base price for an invoice? I know it is not from any price list, and it is

  • Why is iTunes slow on start-up? ...color pinwheel forever...

    I am also using Tune-up software. Both applications start-up together.  At first, it was only Tune-up that was slow starting up. Now, both iTunes and Tune-up take a significant amount of time before I can use either of the apps. I see the color pinwh

  • Can't launch any application except Safari;

    all application giving error 'quit unexpectedly' whenever trying to start. please help.