Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create HTML Files ?



Hi Simon, 

I think maybe this is what you want:

WOComponent somePage = pageWithName("SomePage");
// Initialize page here
WOResponse response = somepage.generateResponse();
NSData htmlAsData = response.content();
FileOutputStream fileToSaveAs = new FileOutputStream("/path/to/file"); 
htmlAsData.writeToStream(fileToSaveAs);

aka
somepage.generateResponse().content().writeToStream(new
FileOutputStream("/path/to/file")); 


Chuck


At 01:04 AM 03/11/2003 +0100, Simon Ganiere wrote:
>Thanks Owen for the answer
>
>I have understand that WO page appears in pure HTML in the browser. I
>wanted to know how to catch this html code from WO to put it in a
>other HTML Files in other folder. I don't know if I'm clear. The
>purpose of my question is how to catch the HTML code building from WO
>to write it in an other HTML page. The best example is the iPhot  and
>.Mac process, in iPhoto you can edit the template, the name of the
>photo, the number of column, when you click send. All the information
>i enter were send to WO and it build a simple HTML Page -> how does
>that work ?
>
>Sorry for my english it's not my primary language :D
>
>Simon
>-------------------------
>Simon Ganihre
>http://www.simonganiere.ch
>Switzerland
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Create HTML Files ? (From: "Simon Ganiere" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.