response.setContentType("text/html");In this example, the setContentType() method is used to set the content type to "text/html". Package library: javax.servlet.http Description: This library contains classes and interfaces for integrating servlets and HTTP responses.