This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes number of mime types Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "number of mime types" Watch "number of mime types" New topic
Author

number of mime types

Jeffrey Pony
Greenhorn

Joined: Jun 24, 2002
Posts: 25
Can u have more than one mime type within the SAME servlet .If yes does the latter one overwrite the earlier one?
Thanks in advance.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12757
    
    5
You can set the mime-type for an individual response with setContentType( somestring ).
Bill
 
Consider Paul's rocket mass heater.
 
subject: number of mime types
 
Similar Threads
Scrabble... it only takes a minute...
video/mpeg mapping
WA #1.....word association
getWriter and getOutputStream
Mistakenly changed web.xml