cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject RE: Problem with handle-errors and sub-sitemap
Date Tue, 04 Sep 2001 15:56:03 GMT
Oops! I need to checkin small change to main sitemap, sorry!
Here it is:

Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-cocoon2/webapp/sitemap.xmap,v
retrieving revision 1.44
diff -u -r1.44 sitemap.xmap
--- sitemap.xmap        2001/08/23 17:46:19     1.44
+++ sitemap.xmap        2001/09/04 15:54:32
@@ -216,6 +216,11 @@
    <map:match pattern="sub/**">
     <map:mount uri-prefix="sub" src="sub/" check-reload="yes"/>
    </map:match>
+
+   <map:handle-errors>
+    <map:transform src="stylesheets/system/error2html.xsl"/>
+    <map:serialize status-code="500"/>
+   </map:handle-errors>
   </map:pipeline>

   <!-- protected webapp example pipeline -->


Vadim

> -----Original Message-----
> From: Carsten Ziegeler [mailto:cziegeler@sundn.de]
> Sent: Tuesday, September 04, 2001 11:52 AM
> To: cocoon-dev@xml.apache.org
> Subject: AW: Problem with handle-errors and sub-sitemap
>
>
> Hmm, it's not working here:
>
> - Page http://localhost:8080/cocoon/sub/generror is the servlet error page!
> - Page http://localhost:8080/cocoon/generror is the correct one.
> - Page http://localhost:8080/cocoon/sub/does-not-exist is served by the
> subsitemap.
>
> Carsten
>
> > -----Ursprüngliche Nachricht-----
> > Von: Vadim Gritsenko [mailto:vgritsenko@hns.com]
> > Gesendet: Dienstag, 4. September 2001 17:43
> > An: cocoon-dev@xml.apache.org
> > Betreff: RE: Problem with handle-errors and sub-sitemap
> >
> >
> > Carsten,
> >
> > Yes, it is working. Test case:
> > Page http://localhost:8080/cocoon/sub/generror should match
> > http://localhost:8080/cocoon/generror
> > (they both are generated by main sitemap handler).
> > And http://localhost:8080/cocoon/sub/does-not-exist should
> > present customized (by subsitemap)
> > page.
> >
> > Thanks,
> > Vadim
> >
> > > -----Original Message-----
> > > From: Carsten Ziegeler [mailto:cziegeler@sundn.de]
> > > Sent: Tuesday, September 04, 2001 11:27 AM
> > > To: cocoon-dev@xml.apache.org
> > > Subject: AW: Problem with handle-errors and sub-sitemap
> > >
> > >
> > > Vadim,
> > >
> > > I changed your solution a little bit, could you please verify
> > > if this is working (or is there an example I could test) ?
> > >
> > > Carsten
> > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Vadim Gritsenko [mailto:vgritsenko@hns.com]
> > > > Gesendet: Dienstag, 4. September 2001 16:00
> > > > An: cocoon-dev@xml.apache.org
> > > > Betreff: RE: Problem with handle-errors and sub-sitemap
> > > >
> > > >
> > > > Hi Carsten,
> > > >
> > > > Welcome back. Nope, I am deep in paid work right now,
> > > > and expect to be there for a month or so...
> > > >
> > > > PS: About "AW: [C2] cocoon:/ url's don't work from root to
> > subsitemap",
> > > > I think the isue is still there - check
> > http://localhost:8080/cocoon/sub/
> > > >
> > > > Vadim
> > > >
> > > > > -----Original Message-----
> > > > > From: Carsten Ziegeler [mailto:cziegeler@sundn.de]
> > > > > Sent: Tuesday, September 04, 2001 3:57 AM
> > > > > To: cocoon-dev@xml.apache.org
> > > > > Subject: AW: Problem with handle-errors and sub-sitemap
> > > > >
> > > > >
> > > > > Hi Vadim,
> > > > >
> > > > > did you find a better solution or should I take a look at it?
> > > > >
> > > > > Carsten
> > > > >
> > > > > > -----Ursprüngliche Nachricht-----
> > > > > > Von: Vadim Gritsenko [mailto:vgritsenko@hns.com]
> > > > > > Gesendet: Montag, 20. August 2001 23:59
> > > > > > An: Cocoon Developers
> > > > > > Betreff: Problem with handle-errors and sub-sitemap
> > > > > >
> > > > > >
> > > > > > Carsten,
> > > > > >
> > > > > > I found one more problem after your checkin
> > > > > > "Redesigned the handling of the cocoon: protocol"
> > > > > > with handle-errors elements and sub-sitemaps.
> > > > > >
> > > > > > If exception is thrown in subsitemap, handle-error in
> > > > > > parent sitemap can not be handled correctly as state of the
> > > > > > environment (namely, "prefix" attribute) has been changed.
> > > > > >
> > > > > > I applied quick-and-dirty fix to this in hope that you
> > > > > > will come up with something better then setPrefix() method
> > > > > > on environment.
> > > > > >
> > > > > > Thanks,
> > > > > > Vadim
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > > > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > > > > >
> > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message