cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <pati_giac...@yahoo.com>
Subject RE: [C2]Action proposal (long)
Date Tue, 14 Nov 2000 08:50:51 GMT

--- maciejka@tiger.com.pl wrote:
> On 10 Nov 2000, at 5:29, Giacomo Pati wrote:
> 
> On 10 Nov 2000, at 5:29, Giacomo Pati wrote:
> 
> > --- Brian Olsen <bro@sanderman.com> wrote:
> > ...
> > > >   <action-chain name="secure-data-entry">
> > > >    <act type="session-validator"/>
> > > >    <act type="admin-authorizer"/>
> > > >    <act type="validate-form">
> > > >     <parameter name="schema" 
> > > >       value="my-path-to-schema-resource.xsd"/>
> > > >    </act>
> > > >    <act type="save-form"/>
> > > >   </action-chain>
> > > 
> > > It is not just the action that generate state information. The
> chain
> > > itself
> > > should also generate some information in case one of the actions
> in
> > > the
> > > chain fail.
> > > When the authorization fail I want the make one response if the
> form
> > > didn't
> > > validate I want another one.
> > 
> > Can you suggest a way to achieve this?
> > 
> 
> Why not to let actions throw exceptions and catch them in sitemap:

It's already there! A <pipeline> can have a <handle-error> element
which you can fillup with <transform> and <serialize> to suit your
need. The thrown exception will be handled by an internal generator
which converts the Exception into a defined DTD (see
org.apache.cocoon.Notifier).

Giacomo

=====
--
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch

__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

Mime
View raw message