hai.. am exporting xml file using save dialog box and i need to know whether user save the exported file are not by checking which button is clicked on save dialog box (save or cancel) is it possible please help me
Thank you
hai.. am exporting xml file using save dialog box and i need to know whether user save the exported file are not by checking which button is clicked on save dialog box (save or cancel) is it possible please help me
Thank you
Jump to PostTo get help, you need to provide relevant code and more details with regard to what's not working, etc..
To get help, you need to provide relevant code and more details with regard to what's not working, etc..
thank you
here is my code..
Document document = getExportedXML();
TransformerFactory transformerFactory =TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
// here document is xml content
DOMSource source = new DOMSource(document);
response.setContentType("text/xml; charset=UTF-8");
response.setHeader("Content-disposition","attachment; filename=\"" + exportedFileName+ "\"");
PrintWriter out = response.getWriter();
StreamResult result = new StreamResult(out);
transformer.transform(source, result);
this code will opens save dialog box.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.
You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.