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 HttpServletResponse class.
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.