This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 417
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
Need help related to content type issue
Can we use to create an EBook
File download with servlets
getOutputStream() has already been called for this response
Displaying image on jsp