On Fri, 2002-07-12 at 15:18, [EMAIL PROTECTED] wrote:
> Let me summarize and rephrase:
> - When the user is not logged, the login-page will be shown.
When the user is not logged-in, the login page will be shown(to be sure
we mean te same)

> - After the form on the login-page is submitted, the form is processed by
> the referenced page. This in itself will not login the user.
> So what *is* required of the login-form and the referenced page in order
> for the login to succeed?

We want to enter page foo.jsp and in it is the taglib <mm:cloud
loginpage="login.jsp" />
When the page foo.jsp is called, the following situations can happen:
    scenario 1 : not logged-in, no parameter with value login:
        Stop current page processing, show the login.jsp, which is a
        form with parameter command with value login. Parameters can be
        specified inside a form. When the button submit is pressed, this
        parameters will be send to the referencing page (foo.jsp)
    scenario 2 : not logged-in, a parameter with value login:
        The parameters will be retrieved from the request. These
        parameters will be passed to the security
        (CloudContext.getCloud(cloud, method, otherparameters)), and the
        cloud retrieved will be stored inside the context.(from now you
        are logged in)
        Page processing of foo.jsp will continue
    scenario 3: logged-in
        Page foo.jsp will simpy be processed.
    scenario 4: logged-in with parameter command with value logout
        The cloud in the session will be removed (you are now logged
        out) and we can continue here from scenario 1.

-- 
Eduard Witteveen Systeem Ontwikkelaar
NOS Internet,  Gateway C Kamer 107
+31(0)356772910 http://www.omroep.nl/

Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal

Reply via email to