You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2013/02/09 22:50:18 UTC
svn commit: r850064 - in /websites/staging/sling/trunk/content: ./
documentation/the-sling-engine/errorhandling.html
Author: buildbot
Date: Sat Feb 9 21:50:18 2013
New Revision: 850064
Log:
Staging update by buildbot for sling
Modified:
websites/staging/sling/trunk/content/ (props changed)
websites/staging/sling/trunk/content/documentation/the-sling-engine/errorhandling.html
Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Feb 9 21:50:18 2013
@@ -1 +1 @@
-1444445
+1444446
Modified: websites/staging/sling/trunk/content/documentation/the-sling-engine/errorhandling.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/the-sling-engine/errorhandling.html (original)
+++ websites/staging/sling/trunk/content/documentation/the-sling-engine/errorhandling.html Sat Feb 9 21:50:18 2013
@@ -101,8 +101,8 @@
<p>Errorhandler scripts and servlets are script with the current response. Before setting
the status and writing to the response such handlers should do the following:</p>
<ul>
-<li>Check whether the response has already been committed</li>
-<li>If the response has been committed:<ul>
+<li>Check whether the response has been committed or not</li>
+<li>If the response has not been committed:<ul>
<li>Reset the response</li>
<li>Set the status code (use <code>HttpServletResponse.setStatus</code>)</li>
<li>Set the response content type and character encoding (provided text data is sent back)</li>
@@ -141,7 +141,7 @@ To register a catch-all handler for any
<p>Starting with Sling Servlet Resolver version 2.0.10 the default error handler servlet is looked up using the string <code>default</code> as the request extension and the provided default servlet is registered as <code><prefix>/sling/servlet/errorhandler/default.servlet</code> where <prefix> is the last entry in the resource resolver search path, <code>/libs</code> by default.</p>
<p>Thus to overwrite the default error handler servlet provide a servlet or script for the <code>default</code> extension, for example <code>/apps/sling/servlet/errorhandler/default.groovy</code>.</p>
<div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
- Rev. 1444445 by fmeschbe on Sat, 9 Feb 2013 21:48:40 +0000
+ Rev. 1444446 by fmeschbe on Sat, 9 Feb 2013 21:50:12 +0000
</div>
<div class="trademarkFooter">
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project