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 ?



Hello Chuck

Thanks that was exactly what i'm looking for ! ! Great i will try to
do this when i have some times ;)

Thanks Simon


>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
>

-------------------------
Simon Ganiere
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.



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.