Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


saving xml file into local disk using jsp

From: Seetha Rama Krishna <ram_kurra@-----.--.-->
To: xml-dev <xml-dev@-----.---.--->
Date: 6/5/2006 3:41:00 PM
Hi Techies,
             I am  creating the xml file from jsp and  generation of xml is working  fine for me.
         Now the  query  is    How can I point out the location of local machine??
     Here is my code
  
  String locationAndBackupFileName =request.getParameter("locationAndNameOfBackupFile");
      System.out.println("Location"+locationAndBackupFileName);
StringWriter  stringOut = new StringWriter();        
XMLSerializer   serial = new XMLSerializer(stringOut, new OutputFormat("xml", "UTF-8", true));
response.setContentType("application/xml");
 
response.setHeader("Content-Disposition","attachement; filename="+locationAndBackupFileName);
serial.setOutputCharStream(new FileWriter(locationAndBackupFileName));

serial.serialize(document.getDocumentElement());  when I xcute my code I am getting download dialog box, with save option.
      But after downloading no data is available.
     Can u guys help me to fix this problem
  
  
   


regards,
ramu Send instant messages to your online friends http://in.messenger.yahoo.com 

 Stay connected with your friends even when away from PC.  Link: http://in.mobile.yahoo.com/new/messenger/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent