On Sun, 20 Jun 2004 19:48:54 +0200
Joerg Heinicke <[EMAIL PROTECTED]> wrote:
> 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.
>
> Joerg
>
Also you can throw ResourceNotFoundException("my message") in xsp
--
Best regards,
Yury Mikhienko.
IT ERP group head, ZAO "Mobikom-Kavkaz"
tel: (8632) 704188
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]