sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r850064 - in /websites/staging/sling/trunk/content: ./ documentation/the-sling-engine/errorhandling.html
Date Sat, 09 Feb 2013 21:50:18 GMT
Author: buildbot
Date: Sat Feb  9 21:50:18 2013
New Revision: 850064

Staging update by buildbot for sling

    websites/staging/sling/trunk/content/   (props changed)

Propchange: websites/staging/sling/trunk/content/
--- cms:source-revision (original)
+++ cms:source-revision Sat Feb  9 21:50:18 2013
@@ -1 +1 @@

Modified: websites/staging/sling/trunk/content/documentation/the-sling-engine/errorhandling.html
--- websites/staging/sling/trunk/content/documentation/the-sling-engine/errorhandling.html
+++ 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>
-<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
@@ -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>&lt;prefix&gt;/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 class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project

View raw message