Hi guys! 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 thinking... 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 Curitiba/PR ______________________________________________________________________ Yahoo! Mail - agora com 100MB de espa�o, anti-spam e antiv�rus gr�tis! http://br.info.mail.yahoo.com/ ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
