You could use the focus attribute of the form tag in the html api

html:form action="/xyz" focus="abc"

where abc is your property.

sahil

-----Original Message-----
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 11:47 AM
To: Struts Users Mailing List
Subject: Re: form focus


Why not customize the <html:form> tag?

You could override the renderFocusJavascript() method in FormTag to retrieve
the errors and highlight the appropriate field

Niall

----- Original Message ----- 
From: "j h" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 20, 2004 3:43 PM
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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to