HighDots Forums  

re: help on the file type

Javascript JavaScript language (comp.lang.javascript)


Discuss re: help on the file type in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
timothy ma and constance lee
 
Posts: n/a

Default 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?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.