This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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 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.