I have jsp page with 2 input fields username and password.
after i enter username and password, it will navigate to next page and if username or password is incorrect, i have a hyperlink to navigate to login page where i need to focus on username field.
Vinutha, If on normal loading and in case of authentication failure you are focusing same element then you can use onload focus technique.
Use below tag in your page body.
This way, when your page gets loaded it will focus the required element. And as per my understanding, you are reloading the page on authentication failure. so again it will focus User Name field.
Hope it solves your problem.
Mahesh Kedari - Fidus Technologies Ltd.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop