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

Setting the content type of Servlet to text/html  RSS feed

 
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
Posts: 66205
151
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
Boost this thread!