I creating a login method, i have a model, this model checks if the
user is logged-on, if he is, then the model calls writeContent, else,
the model call writeLoginErrorMessage.
I have another servlet called FormLogin that implements a form to
login, in the writeLoginErrorMessage i call the
FormLogin.writeContent(self)... This form send data to a servlet caller
Login, the login check if the data is ok, then show a Congratulation or
an Error message.
The problem is that if I´m in some restrict page, i go to login page
and have a general congratulation message, rather i want to go back to
the restrict page when the user make the login...
I think to pass a request variable to the login page, this request
variable tells from what page the login was requested, if there is no
request variable, the login was called directly from the FomLogin.
Is it a good idea? Is there another way to do this task?
I´m have another idea, I can implement a RestrictModel servlet, this
model tests if the login is a valid login and if not, show the login
form, send the data to itself and validade it, but i need more
Is there something done in this area?
Thanks for any help and sorry about the big message and about the poor
english used in :)
Michel Thadeu Sabchuk
Yahoo! Mail - agora com 100MB de espaço, anti-spam e antivírus grátis!