Please clarify me about response.setContentType(), whether its required to set content type before writing in to response... or is there default method for content type if we don’t explicitly define setContentType().
In below example if we don’t set content type, as its commented for contentType , will it throw the runtime exception or it will work fine. How the content will be shown in browser.
please explain. Thanks In advance.
In below example if we don’t set content type, as its commented for contentType , will it throw the runtime exception or it will work fine. How the content will be shown in browser.
please explain. Thanks In advance.