On Mon, 2008-03-10 at 14:59 -0700, Dave Newton wrote: > --- "Kelly.Graus" <[EMAIL PROTECTED]> wrote: > > Is it possible to specify more than one SUCCESS result for an action? For > > example, when the user runs an action, it could prompt them to download a > > file (using the stream result type), and then redirect them to another > > page? > > Names should be unique to a single result, otherwise there'd be no (easy) way > to distinguish them. Depending on how you actually want the above scenario to > work there are probably a few other options. > > Dave
Probably the most common practice would be to have your "success" result contain a meta-refresh that redirects to the action which will spit out your file (by stream result). If the file download requires some precondition to be met, then you'll probably have to set a flag in the user's session, since the meta-refresh will generate a whole new request. The advantage of this scenario is that your user will not end up looking at a blank page, or his/her previously filled out form (and potentially submitting more than once). -Wes --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]