cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oceatoon <t.katelb...@systheo.com>
Subject Re: create a file ...
Date Tue, 10 May 2005 20:10:20 GMT
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 <t.katelbach@systheo.com>
>>Reply-To: t.katelbach@systheo.com
>>To: users@cocoon.apache.org
>>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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message