Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Option for saving and opening a XML file.

843841Aug 23 2007 — edited Aug 23 2007
Hello,

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2007
Added on Aug 23 2007
4 comments
238 views