users@jersey.java.net

Re: Changing headers in service

From: Christian <christian.rivasseau_at_gmail.com>
Date: Mon, 14 Jan 2008 16:22:57 +0100

hmm sounds like having an HttpServletResponse annotated with resource
and provided by a per request provider would allow me to modify the response
on each request am I right ?


 @Resource
    public HttpServletResponse response ;

sorry to bother



2008/1/14, Christian <christian.rivasseau_at_gmail.com>:
>
> Hi
> I cannot figure how to add a response header to the response when running
> in a servlet container ?
> Should I try to have some HttpServletResponse injected in my service ? I
> can't figure how to do this
>
> Thanks in advance
> ,
>
> Christian
>