Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting the content type of Servlet to text/html

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a servlet that forwards/includes a JSP. I have set the mimetype of my JSP to text/html. Would it make any effect if I also make the response of the Servlet to text/html by using response.setContentType("text/html")? Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, there is just one response.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic