hi thorsten,
you could redirect to an 'no-results-page' pipeline which serializes with a
status code of 404;
...
<map:match pattern="no-results">
...
<map:serialize type="html" status-code="404"/>
</map:match>
...
HTH
> -----Ursprungliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von thorsten schmid
> Gesendet: Mittwoch, 10. Marz 2004 11:20
> An: [EMAIL PROTECTED]
> Betreff: generating a 404 response in an xsp based pipeline
>
>
> Hello,
>
> Does anyone now how to generate a 404 error page in xsp?
> We have an xsp-page searching a database for hits on clicked hyperlinks.
> Because the site is also visited by search engines, I want the server to
> respond with 404 status page as soon as the query returns no result.
> Otherwise the webcrawler would spider several 'sorry no result
> found' - pages.
> That would not make any sense at all.
>
> What I have been trying so far is to use the action logicsheet
> to redirect to
> an unknown uri to let cocoon serve the error page. But the use of
> the action
> logicsheet is not allowed within a generator.
>
> Does anyone have hints on how to solve the problem??
> Best regards
> Thorsten
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]