Jeroen Reijn-3 wrote:
> 
> Hi,
> 
> try setting the status-code attribute on your custom serializer.
> 
> <map:serialize type="xml" status-code="001"/>
> 
> Regards,
> 
> Jeroen Reijn
> 
> 
> 
> 
> -----Original Message-----
> From: nanomonk [mailto:[EMAIL PROTECTED]
> Sent: Tue 4/15/2008 11:19 AM
> To: [email protected]
> Subject: [2.1]change response http status
>  
> 
> I need to set another status-code via "response.setStatus(1)":
> "HTTP/1.1 200 OK"
> to
> "HTTP/1.1 001 blablabla"
> Now I have my custom serializer. How can I to take access to Response
> object
> from serializer?
> 
> -- 
> View this message in context:
> http://www.nabble.com/-2.1-change-response-http-status-tp16698263p16698263.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
Hmm.. no, I need to set status code according to some events during
executing my own serializer, for example: if all ok done - status code 1,
some error - 2, another error - 3...
so, can I to access to Response object from serializer(exactly via
"response.setStatus(1)" in a code)?
if not - maybe another true-way is exist?
-- 
View this message in context: 
http://www.nabble.com/-2.1-change-response-http-status-tp16698263p16721000.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to