• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How does the Container handle conflicting MIME instructions?

 
John Strong
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our JSP forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you tried it, which one got delivered to the browser?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic