• Post Reply Bookmark Topic Watch Topic
  • New Topic

JWebplus : Question ID :994963696517

 
Nazmul Huda Sarkar
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JWebplus : Question ID :994963696517
Which method of HttpResponse would you use to set it's content type?
Ans. setHeader
But there is no setHeader methid in HttpResponse interface...
Answer should be setContentType
Any Comments ?
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3897
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But that's exactly what JWebPlus shows. setContentType() is also given as one of the correct options. And it is HttpServletResponse not HttpResponse.
HTH,
Paul.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!