Hi Max,
I succeeded with the following two lines in an action:
HttpServletResponse res = (HttpServletResponse)
objectModel.get(HttpEnvironment.HTTP_RESPONSE_OBJECT);
res.setStatus(207);
You might want to create a general HttpStatusAction that can handle other
response codes as well.
HTH,
Michael Homeijer
-----Original Message-----
From: Max Larsson
To: [EMAIL PROTECTED]
Sent: 25-11-2002 9:46
Subject: HTTP Status Response
Hi,
i wondering if it is possible to set the status
of the http response, from the standard
HTTP/1.1 200 OK
to something different like
HTTP/1.1 207 Multi-Status
TIA
Max
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>