my dog learned polymorphism*
The moose likes Servlets and the fly likes res.setContentType Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "res.setContentType" Watch "res.setContentType" New topic
Author

res.setContentType

Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
I know about these content types:

res.setContentType("image/gif");
res.setContentType("application/pdf");
res.setContentType ("application/download");
res.setContentType("application/zip");
res.setContentType("application/tar");
res.setContentType("application/doc");
res.setContentType("image/jpg");
res.setContentType("application/word");
res.setContentType("text/plain");
res.setContentType("image/jpeg");
res.setContentType("application/txt");
res.setContentType("application/gif");
res.setContentType("application/jpg");
res.setContentType("text/html");
res.setContentType("text/xml");
res.setContentType("text/vap.wap.wml");
res.setContentType("text,vnd.wap.xml");
res.setContentType("text/vnd.wap.wml");
res.setContentType("multipart/mixed");
res.setContentType("text/html;charset=iso-2022-jp");
res.setContentType("application/vnd.ms-excel");

Can some body point me to some link where i can go in details about all these content types.
Especially "application/download".
Thanks
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

This looks like a fairly comprehensive list.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: res.setContentType
 
Similar Threads
Can we use to create an EBook
File download with servlets
Need help related to content type issue
Displaying image on jsp
getOutputStream() has already been called for this response