• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sending header information to client without disturbing the processing

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7582
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic