> -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] Behalf Of j h > Sent: Tuesday, July 20, 2004 7:44 AM > To: [EMAIL PROTECTED] > Subject: form focus > > > Can someone explain how the focus of a form can be set to one > of the elements > that failed validation when the form is re-displayed
Depends on when you're doing the validtion.. using the javascript validation or server side validation. Server side you would have to do something like <html:form blah blah focus="${focusOn}"> </html:form> and set the focusOn attribute in your action class. javascript... you will have to write the javascript to do it... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]