title: external js fiie not working when trying to validate a jsp form
body: <p>the jsp page containing form</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>function formValidation()
  {
  
      var fname= document.form1.first_nm;
  
  
  &lt;form name="form1" onsubmit="return formValidation()" method="post"&gt;
  
  First Name:&lt;input type="text" name="first_nm" /&gt;&lt;br&gt;
  
  My jsp page:
  
  index.jsp
  </code></pre>
  
  <p>The jsp page contains the form on using the onsubmit event it is not loadingthe extyernal js file.
  please help. I am not able to get where I am going wrong.</p>