SendConfirmationEmail isn't exactly a chain, the example got munged up and I
really did mean SendEmail to be used as an Action. Anyway, enough about
that... to answer your question:

"Can a chain have more than one View?"

Yes, of course:

NewDocument.action=ValidateDocument
NewDocument.input=newdoc.jsp
NewDocument.success=CreateNewDocument.action

CreateNewDocument.action=StoreDocument
CreateNewDocument.error=error.jsp
CreateNewDocument.success=newdoc_success.jsp

So if you think of this simple chain as a black box (ie: the only action
that the web developer is concerned with is the NewDocument.action), then
there are three possible outcomes: newdoc.jsp, error.jsp, and
newdoc_success.jsp.

The answer to your other question, "aren't views terminal?"... yes, they
are. As you can see in the above example, you need to provide an display of
some sorts at the end of the dynamic chain. I suppose CreateNewDocument (aka
StoreDocument) could return NONE, but then I believe you'd just get a blank
page.

Also, remember that action chaining is very dynamic (above example
illustrates that) and that is why it must be treated specially in
GenericDispatcher. All other views are just treated as generic views, but an
action chain must be handled differently. That's why in my configuration
design in sandbox/xwork, you can see that the Map of results is a mapping of
String -> Action OR View.

-Pat

----- Original Message -----
From: "Joseph Ottinger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002 1:45 AM
Subject: Re: [OS-webwork] More thoughts on Configuration


> In summary, Maurice brought up a good point about SendConfirmationEmail
> being a View rather than an action...
>
> That brings up another concept. Can a chain have more than one View? I
> personally agree with Maurice in this: sendConfirmationEmail sounds
> EXACTLY like a view (that happens to be "viewed" via SMTP session...) but
> aren't views terminals? What would a browser see in this case?
>
> ---------------------------------------------------------
> Joseph B. Ottinger                 [EMAIL PROTECTED]
> http://enigmastation.com                    IT Consultant
>
>
>
>
> -------------------------------------------------------
> 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

Reply via email to