2 Minutes To Code (β Version)

Java Servlets - 2 minute tutorial

How to add headers in http response

To set headers in the http response and check if specific headers are present, use the methods addHeader(..), addDateHeader(..), addIntHeader(..) and containsHeader(..) of the HttpServletResponse object.