Umm.  OK, thanks.  Not was I was expecting, but I'll take it.

However, the more generic question is then how do I set an arbitrary
HTTP header (entity or response) on a response? 

--Chuck

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vincent
Sent: Sunday, February 11, 2007 8:51 PM
To: [email protected]
Subject: Re: Response Headers



> Maybe I'm blind, but I don't see how to set a header in a response.
> 
> I need to set the Location header on a response to a POST, but I can't

> seem to find the right place to do that.  What am I missing?


 response.setStatus(Status.SUCCESS_CREATED);
 response.setRedirectRef(request.getRootRef() + <uri>);

-Vincent.

Reply via email to