----- Mensaje original -----
>De: Jon Stevens <[EMAIL PROTECTED]>
>Para: Turbine-user <[EMAIL PROTECTED]>
>Enviado: martes 8 de mayo de 2001 21:27
>Asunto: Re: Login error page
> on 5/8/01 10:12 AM, "Pere Torrodellas" <[EMAIL PROTECTED]> wrote:
>
> > Now I need the user to get Login.vm as the response to the first request,
but
> > a
> > different page (generated by, say, unsuccessful.vm) with an error message
and
> > a
> > "retry" link to Login.vm on an unsuccessful Login.
>
> This makes no sense. You want the same page but a different page?
>
> -jon
Sorry if I didn't manage to explain it clearly. Maybe I simplified too much to
make the message short. Let me try again, in some more detail:
1. User sends first request to the application. Because there is no valid
session, Turbine sends page generated with Login.vm template, with userId and
password input fields.
2. User enters info, which goes to LoginUser Action. LoginUser checks several
situations (not only userId/pw validity).
3. If not all checks are successful, LoginUser doesn't create a valid session,
and different pages (depending on the situations checked) should be returned to
the user.
These pages would include extensive information, no userId/pw input fields, and
links to other resources. If the error is in userId/pw, the page sent should
include a link back to the application to have the Login page displayed again
and let the user retry. In this later case, the Login page could be sent
directly, but a previous different one is preferred for uniformity.
I understand that all this could probably be done with just the Login.vm
template, by adding/suppressing elements with Velocity code, but using different
pages, one for each situation, seems easyer and cleaner to me.
I hope that it's clear now, and will be grateful for any explanation that can
help me if this approach makes sense.
Pere Torrodellas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]