J
Jean Lutrin
Hi all,
I have a question regarding how things are
named in the following scenario...
Imagine a Web site where you have to login before
you access, say, the "forums".
1. You click on the forum link
2. The server notices you're not logged yet and directs you
to the login page.
3. You enter a correct username, but you mistype your password.
4. The server ask your password a second time.
5. You enter it wrongly again.
6. The server now, after two wrong tries, propose you to send
your password back by email.
7. etc.
If we're using some kind of MVC framework (self made, or already
made, like Struts -- leaving aside consideration about wether or
not Struts is really an MVC framework etc.), what is the model,
what is the view, what is the controller in the above scenario?
I think I understand the "view" part, but what about the model
and the controller?
More specifically, there's some "logic" involved here : after two
wrong login tries, we propose to send the password back by email.
What is this logic related to?
I hope my question makes sense,
Jean
P.S: I want to precise that this is definitely not for
homework (as it seems to be a concern here Simply I want
to level my programmatic skills and my english skills.
I have a question regarding how things are
named in the following scenario...
Imagine a Web site where you have to login before
you access, say, the "forums".
1. You click on the forum link
2. The server notices you're not logged yet and directs you
to the login page.
3. You enter a correct username, but you mistype your password.
4. The server ask your password a second time.
5. You enter it wrongly again.
6. The server now, after two wrong tries, propose you to send
your password back by email.
7. etc.
If we're using some kind of MVC framework (self made, or already
made, like Struts -- leaving aside consideration about wether or
not Struts is really an MVC framework etc.), what is the model,
what is the view, what is the controller in the above scenario?
I think I understand the "view" part, but what about the model
and the controller?
More specifically, there's some "logic" involved here : after two
wrong login tries, we propose to send the password back by email.
What is this logic related to?
I hope my question makes sense,
Jean
P.S: I want to precise that this is definitely not for
homework (as it seems to be a concern here Simply I want
to level my programmatic skills and my english skills.