• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending header information to client without disturbing the processing  RSS feed

 
Sharmila varanasi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a situation here , we have a servlet request from calling agent for order creation and display on order form.
Requirement is to send the order number as header to the calling agent, while displaying order form on UI.

Tried below(in bold) setting order number to servlet response, what needs to be done to have the calling agent receive the header details, without disturbing the display on UI

[/b]
 
Tim Moores
Saloon Keeper
Posts: 4036
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use any header that's not otherwise defined: List_of_HTTP_header_fields. Maybe prefix the name with "X-" to differentiate it from standard headers. Not sure what sessionInfo.getResp() returns, the way to set response headers with the servlet API would be with HttpServletResponse.setHeader.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!