I am developing a module called forgot password where password is sent to the user entered email address. After user submits the forgotpassword page, password is sent to user email address by java mailing API.
In between I have a transition page with description that "we are sending your password to your email address. Please check your mail to get your password". Then user is redirected to login page.
Now I want some waiting time between the transition and login page. Login page should come up after the specified time. What would be the best way to do that?
One solution which comes in my mind is put current Thread in sleep state for some time.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi