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: AW: C2: Uploader needed
Date Thu, 14 Sep 2000 14:40:54 GMT

--- Carsten Ziegeler <cziegeler@sundn.de> wrote:
> 
> > 
> > _I_ was going to write it as a Generator - but then we (Carsten
> Ziegeler)
> > and I discussed this and he said (mumbling) that a "transformer"
> would be
> > more flexible and allow us to configure the transformer (and what 
> > it returns
> > as a result) on a per-call basis. At least that is what I think he
> meant
> > :-). He's da man (read: chief architect) when it comes to that - 
> > I just code
> > to relieve the frustration of managerial duties :-).
> > 
> > But perhaps he has more to add - hey wake up Carsten!
> >
> Ups....ok, 
> 
> > >>
> > > At the moment we are considering an "UploadTransformer" which
> would
> > > grab the
> > > uploaded file from the HTTP stream and write that out to
> wherever..
> > 
> > Wouldn't it be better to implement that on a Generator base? Could
> you
> > explain why you want to implement it as a Transformer?
> > 
> In my opinion a Generator generates xml, an Upload-"Component"
> instead 
> receives xml and stores it whereever wanted.
> I thought if it is an UploadTransformer which is controlled by some
> elements
> like e.g. the sql transformer, the upload can be embedded in any xml
> resource.

So this means for an Upload initiated by a browser you need an custom
Generator anyway to put the received file into the SAX event stream,
right?

> The UploadTransformer would find its elements, store the file and
> replace his
> elements with his result element. (This could of course also be done
> by a taglib
> but we *love* Transformers...)

Just curiosity, tell me why you love Transformer more than other
components?

> The separation if it is a Generator or Transformer is not very easy,
> perhaps
> it would really be better if it is an Action component. Sorry, I
> didn't follow 
> the thread so I after I woke up now, I go to the mail archive and
> search there....

If you get through :(

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! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Mime
View raw message