File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes response.setContentType Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "response.setContentType" Watch "response.setContentType" New topic


Ann Maria

Joined: Sep 09, 2005
Posts: 27
What is the difference between response.setContentType("application/octet-stream"); and response.setContentType("application/x-file-download"); ?

For displaing text and image what is the parameter?
I agree. Here's the link:
subject: response.setContentType
It's not a secret anymore!