title: Problem in javascript while submiting the form
body: <p>Hi I am getting null value as i am submiting the form using javascript and passing the parameter using querystring ,I am using  <code>request.getParameter("name")</code>, to get the result  ,and also i am not getting any parameter in queryString(address bar).</p>
  
  <p>Please help me ....Thnx...Please ...</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  function checkempno()
  {
  
      var empno=document.getElementById("empno");
      var empvalue=empno.value;
      alert(empvalue);
      if(empvalue=="")
      {
          alert("Employee Number is requried");
          empno.focus();
          return false;
  
      }
  
  }
  function checkempname()
  {
  
      var empname=document.getElementById("empname");
      var empvalue=empname.value;
      if(empvalue==""||empvalue==null)
      {
          alert("Employee Empname is requried");
          empname.focus();
          return false;
  
      }
  
  }
  
  function calljsp(){
      var fform=document.forms["myform"];
  
      fform.action="result.jsp?name=jill&amp;sex=f";
      alert(fform.action);    
      document.forms["myform"].method="GET";
  
      fform.submit();
  
  
  
  
  }
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form  id="myform"&gt;
  &lt;div id="body"&gt;
  &lt;table style="border: 1px solid black;width:60%;padding:15px;margin-left: auto;margin-right: auto;"&gt;
  
  &lt;tr&gt;
  &lt;td style="text-align: center"&gt; &lt;input type="submit" value="Save it" style="text-align: center" &gt;&lt;/input&gt;   &lt;/td&gt;
  &lt;td &gt; &lt;input type="reset"   value="Referesh" &gt; &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td style="text-align:center;"&gt;&amp;nbsp;&amp;nbsp;Click this to submit the form using JScript&lt;/td&gt;
    &lt;td&gt;&lt;input type="button" name="subjsript" size="30" onclick="calljsp();" value="Submit Via JScript"/&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/form&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>