i have an array of textboxes as shown above. When the jsp is served, i want the focus to be on the first textbox.
i think the second option is correct but i am missing something.
Any info on this regard would be appreciated.
posted 11 years ago
Make sure that you have an ActionForm with the routerName property and its getter/setter methods. Also make sure the form is configured in the struts config file properly. Finally, you should be using struts tags to create the text boxes.
You should not need the index number after focus="routerName".