Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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: 4743
117
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!