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!

How to let opened files display in IE ?

843841Jul 7 2003 — edited Jul 9 2003
hi,
I have used this statement before send files to client in my servlet code:
response.setHeader("Content-Disposition", "attachment;filename=\"" + file.getName() +"\"");
It's sure that the "File Download" dialog will be forced at client's side,and user can choose these choices:"open","save as","cancel","more info";
But when i chick "open" this choice,for example,i want to open a file of PDF type,the "Acrobat Reader" will be called and the right file will be opened.
Now, i want to let the opened file displayed in the region i set in IE or other browers.
What should i do ? Please help me.
Thanx very much !
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2003
Added on Jul 7 2003
3 comments
119 views