I am getting trouble in setting focus in Struts <html:form>. There are
two possibilities in my case; in one scenario text field 'A' in form
exists while in other scenario it does not. I want to set focus on 'A'
if it exists. For that simply, I write focus="A". But it gives
javascript error when this field does not exist.
The statement below doesnot accept any scriptlet, so that I may choose
when to put focus and when not. I am using Struts 1.0 and find no way of
dynamic setting focus in form.
<html:form action="submitProfile.do" method="post" focus="A" >
I will appreciate your kind response in this regard. Thanks in advance.

MMS

Reply via email to