struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pratt <>
Subject Re: RequestHeaderAware in Struts 2?
Date Tue, 26 Oct 2010 05:13:01 GMT
As far as I'm aware, there's not.  But it wouldn't be hard to write one.
You could use the ParameterInterceptor as a pattern, but have it take it's
data from the headers rather than the parameters and you'd be done in 1/2
hr.  You could get fancier, to make sure Parameters and Headers with the
same name don't clash, and use an Annotation to identify which headers to
inject into which methods, but that would definitely take more than 1/2 hr.

On Thu, Oct 21, 2010 at 4:36 PM, Jose Luis Martinez Avial <> wrote:

> Hello,
>   I'm working on an application that for security reasons needs to
> access to the request headers from an action. I know I can access to the
> request, but I'm also aware that that is not recomended. Is there a
> RequestHeaderAware or something like that, that fits that the same
> behaviour as ParameterAware, but with reference to the request headers?
>    Thanks
> JL
> Internet communications are not secure and therefore Banco
> Santander International does not accept legal responsibility for
> the contents of this message. Any views or opinions presented are
> solely those of the author and do not necessarily represent those
> of Banco Santander International unless otherwise specifically
> stated.
> Las comunicaciones via Internet no son seguras y por lo tanto
> Banco Santander International no asume responsabilidad legal ni
> de ningun otro tipo por el contenido de este mensaje. Cualquier
> opinion transmitida pertenece unicamente al autor y no
> necesariamente representa la opinion del Banco Santander
> International a no ser que este expresamente detallado.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message