Monday, 27 June 2016

How to set the content type of the response ?


Method of ServletResponse interface
  • setContentType(String) 
    • Sets the content type of the response being sent to the client 
    • It may include character encoding as well. 
    • Example : text/html; charset=ISO-8859-4

No comments:

Post a Comment

Note: only a member of this blog may post a comment.