• Post Reply Bookmark Topic Watch Topic
  • New Topic

response header  RSS feed

 
Vandiyadevan senthan
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anybody explain what will we specify in response.header() and where should we specify that?

thanx in advance.
rgds,
Vandiyadevan
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the javadocs for javax.servlet.http.HttpServletResponse for the methods used. If you are just generating a plain html page, you don't have to worry about headers since JSP takes care of the normal ones.
You should set headers before writing any substantial output since you can't change headers after any output has actually been sent.
Bill
[ December 20, 2003: Message edited by: William Brogden ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!