Response object - addHeader
9 July 2008JSP Response object provides addHeader() method to write the header as a pair of name and value to the response. I wll present an example of this.
Syntax:
Code:
response.addHeader(String name, String value)
Example:
Code:
response.addHeader("Author", "JavaTutorial"); response.addHeader("Cache-Control", "max-age=15");
Hope this helps.
Related Posts:
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: Response object - addHeader