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
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: