As you can see in the savedocument implementation is for XML files you could
surely modify it for simple text files

check this:
http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html
and
http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileInputStream.html
and
http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileOutputStream.html
I think you'll find all you need
Tibor

> Tibor,
> 
>     What object to use for 'document' ?
> I tried with var doc="test"; saveDocument (doc, "test.txt")
> -> Can't find method org.apache.cocoon.xml.dom.DOMStreamer.stream(string)
> 
> Regards,
> Fab
> 
> 
>>From: oceatoon <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: [email protected]
>>Subject: Re: create a file ...
>>Date: Mon, 09 May 2005 19:57:38 +0200
>>
>>Fab Psycho wrote:
>>
>> > Hi :)
>> >
>> >      I'd like to create a file on server with result of a simple
>>form(not
>> > cform)  in my js flow.Is there any built-in function for this
>> > (savedocument ....) ?
>>Hi Psycho Fab
>>This might help , with a few
>>cocoon.request.getParameters("your_form_input_widget")
>>Then save to disk
>>http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=111261500412241&w=2
>>
>>Tibor



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to