[jdom-interest] Re: [jdom-interest] Re: [jdom-interest] Help¡¡¡ PlEAse¡¡¡¡
    Ken Rune Helland 
    kenh at csc.no
       
    Fri Jan 18 05:30:16 PST 2002
    
    
  
> Some tip to solve the problem with the saving of xml files...
> 
> I have replaced the line FileWriter writer = new FileWriter(file); 
> with OutputStream writer = new FileOutputStream(fichero); and creates
> the xml file correctly but I DON'T understand why using a FileWriter
> Class in JSP run OK and in a stand-alone application not......... and a
> java Stand-alone apliccation with the line OutputStream writer = new
> FileOutputStream(fichero); run OK and creates the xml file.......
> 
Just a guess, maybe you need to .close() the file. Maybe the 
buffering/flushing behavior of the FileWriter is differrent in 
the two enviorments.
KenR
    
    
More information about the jdom-interest
mailing list