This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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.