re: help on the file type -
12-03-2004
, 09:19 PM
String file_ext = "rtf";
response.setContentType("application/detail."+file_ext);
response.setHeader("Content-Disposition",
"attachment;filename=detail."+file_ext);
response.getWriter().write(viewBean.getDownloadFil eContent());
In save as file dialog box, it triggers the
file name: detail.rtf
file type: html document
Can it be triggered as rich text document in the dialog box
How can I do that? |