On 10/12/05, Peter Speltz <[EMAIL PROTECTED]> wrote:
> On 10/12/05, David Baird <[EMAIL PROTECTED]> wrote:
>
> > I'd prefer 'redirect' for the external redirect, and
> > 'internal_redirect' for the internal redirect. Although probably the
> > external should be 'external_redirect' for consistent naming.
> >
>
> I'll take you  word for it that it is good to have two seperate
> methods .  I'm guessing you all have more complex things in mind than
> I do.

One reason to have 2 methods is for dealing with pages that have
multiple forms. Say 2 forms both have 'title' fields. You submit one
form, but there's a validation error. So you switcheroo the user back
to the original page. If your forms are 'sticky' (i.e. they are set up
to show the values just submitted), then *both* forms will show the
'title' just submitted. So instead of a switcheroo, you can do an
external redirect. You also need some additional framework to store
the error message and submitted values in a session, and restore them
on the other side of the redirect, but it solves the problem.

d.


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel

Reply via email to