To set the content type of the response in a servlet, which method is commonly used?

  • addType(String type)
  • appendContentType(String type)
  • setContentType(String type)
  • writeType(String type)
The setContentType(String type) method is commonly used to set the content type of the response in a servlet.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *