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,
srithanks !! 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 RavichandraThis 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 AMHi 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 cHi 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 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
JohnA 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?
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?
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 -
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
-
Ditafm-output.ini and PDF output for different situations
I'm using a DITA 1.2 structured app and templates that I've set up. I'm generally happy with the output that I'm getting now, but I've also come to realize that I have two different situations for PDF output--in situation one, I need to set up for pr
-
Bounding box for point and radius
I am using google maps and WGS 84 (4326). I am trying to get the bounding box that contains a circle of a given radius in miles starting at a given lat/lon. I saw SDO_GEOM.SDO_MBR, but I wasn't sure how to do the circle (or at the least get points m
-
I have just bought a new computer for the family. We have 3 different libraries (on different computers) but under same account. I want to consolidate all the libraries from the different computers to the one. We will then synch the i-pod's to the on
-
HT1386 Problem Syncing Music from Itunes to Ipod Touch.
I have one music album on Itunes that won't sync with my Ipod touch. I tried deleting it from Itunes and then adding it again. Still not on Ipod. Also, I have several albums in Itunes that the music will sync but the album artwork will not.
-
TS3989 Can't synch photos from PC to Ipad through icloud
Two days ago I successfully set up icloud and transferred a few photos from my PC to my ipad. Tried again today, by dragging photos to the Photostream folder on my PC but can't get them to move to the ipad. Can someone guide me through the process