title: Error HTTP Status 404. The requested resource is not available. [Netbeans]
body: <p>I do a project Fahrenheit to Celsius conversion using netbeans with Tomcat 8.0.37
  when i try to run project, i get a issue HTTP Satus 404.</p>
  
  <p>My index.html</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;h3&gt;Please enter Fahrenheit temperature:&lt;/h3&gt;&lt;p&gt;
  
  &lt;form action="/conv/test"&gt; 
  Temperature(F) : &lt;input type="text" name="temperature"&gt;&lt;br&gt;&lt;br&gt;
  &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My web.xml</p>
  
  <pre><code>&lt;web-app&gt;
  
    &lt;servlet&gt;
      &lt;servlet-name&gt;testServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;doGetMethod.TestServlet&lt;/servlet-class&gt;
    &lt;/servlet&gt;
  
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;testServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/test&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>My TestServlet.java</p>
  
  <pre><code>public class TestServlet extends HttpServlet 
  {
      public void doGet(HttpServletRequest req, HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException 
      {       
          String temperature = req.getParameter("temperature");
              DecimalFormat twoDigits = new DecimalFormat("0.00");
  
              try 
              {
                double tempF = Double.parseDouble(temperature);
                String tempC = twoDigits.format((tempF -32)*5.0/9.0);
  
                PrintWriter out = res.getWriter();
            out.println("&lt;html&gt;");
            out.println("&lt;head&gt;");
            out.println("&lt;/head&gt;");
            out.println("&lt;body&gt;");
            out.println("&lt;h3&gt;" + temperature + " Fahrenheit is 
                   converted to " + tempC + " Celsius&lt;/h3&gt;&lt;p&gt;");              
            out.println("&lt;/body&gt;");
            out.println("&lt;/html&gt;");
              }
              catch(Exception e)
              {   
  
                res.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
                "There was an input error");           
              }       
      }
  }
  </code></pre>
  
  <p>Please help me to solve this issue !</p>
  
  <p>I apologize for not being word-perfect in English.</p>