Iam working on a J2EEstruts web application. I want to send application information to the server through the Request Headers.
Is there anyway that i can add a custom header information like " isValidUser : true " to the HttpServletRequest object programatically just like we do it using addHeader method in the HttpServletResponseclass.
I don't want to send the information through the Request Params / Query string and i want to send application information to the server in the Request Headers Only.
Any alternate way to achieve this ? Thanks in advance for your time and attention.
I think you'd need to create a ServletRequestWrapper/HttpServletRequestWrapper implementation.
Man, I need to hit send earlier.
subject: Adding custom Header information to the HttpServletRequest object