Option for saving and opening a XML file.
843841Aug 23 2007 — edited Aug 23 2007Hello,
I had a requirement wherein the data needs to be exported in form of an Excel file. Using org.apache.poi.hssf.usermodel.HSSFWorkbook and similar classes under it I acheived that using servlets.
In the above scenario I've used
response.setContentType("application/vnd.ms-excel");
As per new requirements the data now needs to be displayed in an xml format, which can either be opened or saved by end User. I would like to know the content type in this case. Also can I default the opening of the contents in notepad?
Kindly Suggest.
Regards.