aspose file tools*
The moose likes JSP and the fly likes How does the Container handle conflicting MIME instructions? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How does the Container handle conflicting MIME instructions?" Watch "How does the Container handle conflicting MIME instructions?" New topic
Author

How does the Container handle conflicting MIME instructions?

John Strong
Greenhorn

Joined: Jul 23, 2006
Posts: 13
Suppose you specify a MIME type with the contentType attribute of a page directive in a JSP, and you specify a *different* MIME type with the setContentType method of the response object. Which would have precedence?
Thanks,
- John Strong (pluviosilla@gmail.com)
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

Moving to our JSP forum.


[Jess in Action][AskingGoodQuestions]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

When you tried it, which one got delivered to the browser?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

By the way, this is the second time you've had to have a JSP question moved from the wrong forum. Please take the time to post your questions in the appropriate forum.
[ August 03, 2006: Message edited by: Bear Bibeault ]
John Strong
Greenhorn

Joined: Jul 23, 2006
Posts: 13
Apologies. Actually, I didn't notice that the previous question had been moved or responded to. The responses should have generated an e-mail notification for me, shouldn't they?

Anyway, I thought the question was pretty low-level (I'm just a newbee reading a book, after all). I'll try to target the forums better in the future.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How does the Container handle conflicting MIME instructions?
 
Similar Threads
Web start problem
I can't open pdf files
Initiate a download from a servlet
download file via jsp
programmaticly printer wether it supports postscript