Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Add parameter in Header

 
Luiz Pereira
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I add parameter in header request and use request.getHeader() ?
I know request.getParameter but a need this parameter in header.

thanks
[ May 26, 2004: Message edited by: Luiz Pereira ]
 
Mike Nightsky
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you mean in response.
just type response.setHeader(name, value);
and you have it in the header.
to get it back from the incomming request type:
String value = request.getHeader(name);
thats all.

Mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic