title: Using html forms in servlet code not working
body: <p>I'm trying to use forms in my servlet code like this;</p>
  
  <pre><code> out.println("&lt;FORM ACTION=\""+ BooksBought+"\"method = \"POST\"&gt;\n" +
           "&lt;INPUT TYPE=\"SUBMIT\"\n "+
               "       VALUE=\"Update Order\"&gt;\n" +
               "&lt;/FORM&gt;\n");
  </code></pre>
  
  <p>But I keep getting errors like BooksBought cannot be resolved to a variable. BooksBought is another servlet that works by itself so I know this is where the problem is. Please help.</p>
  
  <p>web.xml
       </p>
  
  <pre><code>&lt;servlet-mapping&gt;
    &lt;servlet&gt;
        &lt;servlet-name&gt;BooksBought&lt;/servlet-name&gt;
        &lt;servlet-class&gt;BooksBought&lt;/servlet-class&gt;
    &lt;/servlet&gt;
    &lt;servlet-name&gt;BooksBought&lt;/servlet-name&gt;
    &lt;url-pattern&gt;BooksBought&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt; 
  </code></pre>