title: How to get form name value in JSP
body: <p>Is there a way to get the name of the form element itself using JSP? I searched google and did not find any examples which show how to get the name of the form value specified in the JSP file. </p>
  
  <p>For example, I have the below form, </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;
      &lt;form name="register" action="servregister" method="POST"
          onsubmit="return validate();"&gt;
      &lt;/form&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I would like to get the string "register" to a string variable in JSP. Is there a way to do this?</p>