• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create custom Http header

 
Rama Reddy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to set http header in one jsp using response.setHeader() and redirecting it to another jsp.when i am trying to get it in the second jsp using request.getHeader(),i am getting null value.

Please help me how to set http header using jsp/servlet.

Thanks in advance.
[ November 05, 2008: Message edited by: Rama Reddy ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP headers are not for passing variables from one page to another.

You might want to look into session variables, querystring variables, or hidden form fields for this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic