Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Set Response Header?  RSS feed

 
Mike London
Ranch Hand
Posts: 1476
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to SET the content type to text/xml?

I have a header that doesn't have this attribute set.

All I see is request.getContentType("someName"), but not a set method.

Thanks in advance.

-- Mike
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you look on the request for a method to set a response header?
 
Mike London
Ranch Hand
Posts: 1476
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I have a feed that's displaying a blank page in IE, but displays fine in Firefox and in Opera. The main difference I can see from looking at the http headers is that the feed that doesn't display at all has no content-type set.

Any ideas?

Thanks!!!

-- Mike
 
Mike London
Ranch Hand
Posts: 1476
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Bear, I should have been looking at the Response object.

What can I say....it's Saturday!

Thanks for your reply. <s>

-- Mike
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!