Patrick Lightbody wrote:
CreateAccount.action=CreateWhich is the same as:
CreateAccount.error=create_error.jsp
CreateAccount.success=SendConfirmationEmail.action
SendConfirmationEmail.action=SendEmail
SendConfirmationEmail.error=create_error.jsp
SendConfirmationEmail.success=LoginUser.action
SendConfirmationEmail.params.subject="Your account has been created"
LoginUser.action=LoginUser
LoginUser.error=login_failed.jsp
LoginUser.success=welcome.jsp
CreateAccount.action=Create
CreateAccount.error=create_error.jsp
CreateAccount.success=SendConfirmationEmail.action?subject="Your account has been created"
SendConfirmationEmail.action=SendEmail
SendConfirmationEmail.error=create_error.jsp
SendConfirmationEmail.success=LoginUser.action
LoginUser.action=LoginUser
LoginUser.error=login_failed.jsp
LoginUser.success=welcome.jsp
Which we have been doing for a long time with redirect.action and which you will be able to do again once Erik's patch is applied.
-Maurice
Requirement completed, no code written. Now stop. OK, I want you all to read
this very clearly, because this is the most important part. No, I'm not
kidding. OK, here goes: the KEY to this is the idea of aliasing the SAME
action in MANY different places. Not only for chaining (though that is a
good use) but also for generic action re-use. You can so much more power by
being able to specify params as well.
-Pat
----- Original Message -----
From: "Maurice Parker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 06, 2002 9:02 AM
Subject: Re: [OS-webwork] More thoughts on Configuration
Cool, Billy's still around. :-)
Philipp Meier wrote:
What happens when SendConfirmationEmail.action hits an error condition?If by side-effect you mean View, then I agree.
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 don't think Patrick's whole Action-without-a-View thingy has much to
do with MVC and it's probably a stretch say that WW should support this
approach to developement.
-Maurice
-------------------------------------------------------
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
-------------------------------------------------------
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
-------------------------------------------------------
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