title: How to get servlet action (request parameters) from index.html
body: <p>I have in index.html:</p>
  
  <pre><code>&lt;li&gt;&lt;a href="list?action=list"&gt;List&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>and in servlet class </p>
  
  <pre class="lang-java prettyprint-override"><code>public class Servlet extends HttpServlet {
      protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      String action = request.getParameter("action");
      if (action.equalsIgnoreCase("List")){
            // do something.....
           }
      }
  }
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>&lt;servlet&gt;
          &lt;servlet-name&gt;Servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;ru.proj.top.web.Servlet&lt;/servlet-class&gt;
          &lt;load-on-startup&gt;0&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/list&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>action in servlet is null.</p>
  
  <p>How can I send this parameter from <code>index.html</code> to servlet?</p>