cziegeler 01/10/12 02:32:14
Modified: src/org/apache/cocoon/components/language/markup/sitemap/java
Tag: cocoon_20_branch sitemap.xsl
Log:
Throw exception for internal requests instead of using the error handler
Revision Changes Path
No revision
No revision
1.11.2.34 +5 -1
xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl
Index: sitemap.xsl
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v
retrieving revision 1.11.2.33
retrieving revision 1.11.2.34
diff -u -r1.11.2.33 -r1.11.2.34
--- sitemap.xsl 2001/10/12 08:37:06 1.11.2.33
+++ sitemap.xsl 2001/10/12 09:32:14 1.11.2.34
@@ -124,7 +124,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Giacomo
Pati</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Berin
Loritsch</a>
- * @version CVS $Id: sitemap.xsl,v 1.11.2.33 2001/10/12 08:37:06
cziegeler Exp $
+ * @version CVS $Id: sitemap.xsl,v 1.11.2.34 2001/10/12 09:32:14
cziegeler Exp $
*/
public class <xsl:value-of select="@file-name"/> extends AbstractSitemap
{
static final String LOCATION = "<xsl:value-of
select="translate(@file-path, '/', '.')"/>.<xsl:value-of select="@file-name"/>";
@@ -534,6 +534,10 @@
<xsl:choose>
<xsl:when test="(./map:handle-errors[not(@type) or
(@type='500')])">
getLogger().warn("Error, try to process the error page", e);
+ if (internalRequest) {
+ getLogger().error("Sitemap", e);
+ if (true) throw e;
+ }
try {
return error_process_<xsl:value-of
select="$pipeline-position"/>_500 (redirector, environment,
environment.getObjectModel(), e, internalRequest);
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]