← Prev in month ← Prev in thread
Next in thread → Next in month →

saving xml file into local disk using jsp

From
Seetha Rama Krishna <>
To
xml-dev <>
Date
2006-06-05T15:41:07Z
ID
<>
Thread
saving xml file into local disk using jsp
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/

← Prev in month ← Prev in thread
Next in thread → Next in month →