• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending header information to client without disturbing the processing  RSS feed

 
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]
 
Saloon Keeper
Posts: 4487
112
  • 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.
 
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!