setContentType
Changes the document type of the response.
setContentType
(name
)
Parameters
name
MIME type of the document.
Return value
None.
Remarks
Example:
response.setContentType("text/html;charset=ISO-8859-1")
Features
Method of class: HttpServletResponse
Available in:
- JSSP
- WebApp