title: Issue with getting a form submit to a .java page in a servlet
body: <p>Hey guys I'm working on a Apache Tomcat v7.0 servlet where the user enters in some values, gets sent to a page to preview then hits submit.  The issue is, once they hit submit I get a 404 saying file non existing.  </p>
  
  <p>Set up of project - </p>
  
  <p>WebContent folder has the welcome.js file which sends to roster.js file to preview - within the roster.js file you hit submit and that sends you to this link - <code>src/bandServ/BandListServ.java</code> this link is contained within the Java Resources folder, along with the WebContent folder.  The Java Resources folder contains my packages and that's where I want the data to be sent from the form on the roster.js file.</p>
  
  <p>Code of roster.js file:</p>
  
  <pre><code>&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;%@ include file="/includes/header.html" 
  
     %&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;Battle Of Bands&lt;/h1&gt;
  
      &lt;p&gt;Here is our band roster:&lt;/p&gt;
  
  
      &lt;table cellspacing="5" cellpadding="5" border="1"&gt;
          &lt;tr&gt;
              &lt;td align="right"&gt;Band1:&lt;/td&gt;
              &lt;td&gt;&lt;%= request.getParameter("Band1name")  %&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td align="right"&gt;Band2:&lt;/td&gt;
              &lt;td&gt;&lt;%= request.getParameter("Band2name") %&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td align="right"&gt;Band3:&lt;/td&gt;
              &lt;td&gt;&lt;%= request.getParameter("Band3name") %&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td align="right"&gt;Band4:&lt;/td&gt;
              &lt;td&gt;&lt;%= request.getParameter("Band4name") %&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
  
  
      &lt;/table&gt;
  
      &lt;p&gt;Ready to Rock&lt;/p&gt;
  
      &lt;form action="src/bandServ/BandListServ.java" method="post"&gt;
          &lt;input type="submit" value="submit"&gt;
      &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;%@ include file="/includes/footer.jsp" %&gt;
  </code></pre>