<map:handle-errors>
<map:select type="exception">
<map:when test="our-custom-exception">
<map:generate src="niceerror.xsp" type="serverpages"/>
<map:transform src="html/site2html.xsl">
<map:parameter name="pageTitle" value=": Resource not found"/>
</map:transform>
<map:serialize status-code="404"/>
</map:when>
</map:select>
</map:handle-errors>John
thorsten schmid wrote:
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]
--
---------------------------------------------------------
Jentro Technologies GmbH
John L. Webber, Software Development
---------------------------------------------------------
Rosenheimer Str. 145e 81671 M�nchen
Tel. +49 89 189 169 80 mailto:[EMAIL PROTECTED] Fax +49 89 189 169 99 http://www.jentro.com
---------------------------------------------------------
NOTICE: The information contained in this e-mail is confidential or may otherwise be legally privileged. It is intended for the named recipient only. If you have received it in error, please notify us immediately by reply or by calling the telephone number above and delete this message and all its attachments without any use or further distribution of its contents. Please note that any unauthorised review, copying, disclosing or otherwise making use of the information is strictly prohibited. Thank you. ---------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
