Am Mit, 2002-11-06 um 10.44 schrieb Erik Beeson:
> > "Can a chain have more than one View?"
> >
> > Yes, of course:
> 
> I read this to mean, can a chain actually finish on more than one view.
> For example:
> 
> CreateAccount.action=Create
> CreateAccount.success=SendConfirmationEmail.action,create_success.jsp
> 
> In which case the answer would be no. A chain can only terminate on 1
> view (I know the above example sucks since you could do it by having
> SendConfirmEmail's view be create_success.jsp, but bear with me).
> 
> In a web environment, a single termination point is logical, but as we
> move away from being web based, might there be a place for ending on
> multiple views? For the above example, CreateAccount could have 2 success
> views, one view rendered to SMTP, the other to HTTP. Since an Action
> shouldn't know it's being displayed, an action doesn't seem like the right
> place for sending emails...

What happens when SendConfirmationEmail.action hits an error condition? 
Assume the email cannot sent because of network misconfiguration. This
should certainly be reported to the user. (Threre I would suggest
including the send email logic into CreateAccount). I consider
SendConfirmation beeing some kind of side-effect of the CreateAccount
action.

I strongly suggest keeping the core WebWork action framework as simple and 
stupid as possible. The direction where the development is heading currently
smells for me and looks like the first sings of featurites.

Recently I developed a simplistic WebWork clone in Ruby. Because of the
special needs of my application I implemented a CGIDispatcher and a
MailDispatcher (which RFC822 eMails are feeded into). The whole thing
doesn't need an action.xml but a simple config file like
views.properties. I still must be convinced where the advantages of
action aliasing and action chaning lie.

-billy.

-- 
Meisterbohne       Söflinger Straße 100          Tel: +49-731-399 499-0
   eLösungen       89077 Ulm                     Fax: +49-731-399 499-9


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to