cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: xsp and producing File Not Found
Date Sun, 20 Jun 2004 17:48:54 GMT
On 18.06.2004 09:53, John L. Webber wrote:

> Have you tried "response.setStatus(404);"?

Don't do it that way, do it the Cocoon way.

>> with <map:handle-errors ...> you can catch error, if it happens.. say 
>> map:read won't find a file and 404 is returned.. But I don't seem to 
>> find, how to throw 404 error from XSP?

Throw your specific MyException, catch them in map:handle-errors and set 
the status to 404 there. There is no need to throw 404 in XSP itself.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message