title: Struts form and Javascript
body: <p>I have a login form in struts and I want to have focus on the username field when the page loads.</p>
  
  <p>I am using <code>&lt;html:form&gt;</code> tag and I cannot get this form using its name from javascript as document.formName.username . </p>
  
  <p>How can I do this?</p>