Search code examples
javajspjakarta-eestrutsstruts-1

Setting Request Header in java


Is there any way to modify or set-header of request inside action class? I want to modify it or you can say i want to put flag inside request Header just like we put values in 'attribute' and parameters.


Solution

  • You can do this using HttpServletRequestWrapper. But it's quite dirty solution. Are there really no other ways to solve your problem?