upayavira 2003/06/27 08:10:03
Modified: src/webapp sitemap.xmap Log: Adding status codes to <map:handle-errors> element Revision Changes Path 1.23 +4 -2 cocoon-2.1/src/webapp/sitemap.xmap Index: sitemap.xmap =================================================================== RCS file: /home/cvs/cocoon-2.1/src/webapp/sitemap.xmap,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- sitemap.xmap 21 Jun 2003 14:22:08 -0000 1.22 +++ sitemap.xmap 27 Jun 2003 15:10:02 -0000 1.23 @@ -557,6 +557,7 @@ <map:parameter name="contextPath" value="{request:contextPath}"/> <map:parameter name="pageTitle" value="Resource not found"/> </map:transform> + <map:serialize status-code="404"/> </map:when> <map:when test="invalid-continuation"> @@ -564,6 +565,7 @@ <map:transform src="welcome.xslt"> <map:parameter name="contextPath" value="{request:contextPath}"/> </map:transform> + <map:serialize status-code="404"/> </map:when> <map:otherwise> @@ -571,10 +573,10 @@ <map:transform src="stylesheets/system/error2html.xslt"> <map:parameter name="contextPath" value="{request:contextPath}"/> </map:transform> + <map:serialize status-code="500"/> </map:otherwise> </map:select> - <map:serialize/> </map:handle-errors> </map:pipeline>