cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yury Mikhienko <Yury.Mikhie...@megafonkavkaz.ru>
Subject Re: xsp and producing File Not Found
Date Wed, 21 Jul 2004 13:12:22 GMT
On Sun, 20 Jun 2004 19:48:54 +0200
Joerg Heinicke <joerg.heinicke@gmx.de> 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message