title: Jetty on a non web project
body: <p>I have a plugin project where I want to implement some servlets with jetyy. I have a login.html with this structure:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;
  
  &lt;html&gt;
  
      &lt;head&gt;
          &lt;title&gt;LOGIN.HTML&lt;/title&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;h1&gt;LOGIN&lt;/h1&gt;
  
          &lt;form method='POST' action=''&gt;
              User: &lt;input type="text"&gt; &lt;br /&gt;
              Password: &lt;input type="password"&gt; &lt;br /&gt;
              &lt;input type="submit" value="login"&gt;
          &lt;/form&gt;
  
      &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>After I submit the form, I want to call a servlet to do some actions...
  This is the servlet:</p>
  
  <pre><code>import java.io.IOException;
  
  import javax.servlet.ServletException;
  import javax.servlet.annotation.WebServlet;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  @WebServlet("/receptor")
  public class HelloServlet extends HttpServlet
  {
      private static final long serialVersionUID = 1L;
  
      protected void doGet(HttpServletRequest req, HttpServletResponse resp)
          throws ServletException, IOException {
  
      }
  
      protected void doPost(HttpServletRequest req, HttpServletResponse resp)
          throws ServletException, IOException
      {
          System.out.println("TEST");
      }
  }
  </code></pre>
  
  <p>But I can't call it, I always have the 404 not found error, what's the right thing to write on the action of the form ? </p>
  
  <p>PS: I've tried to create the WEB-INF structure and the web.xml, but I always got bad configuration error of this web.xml .. Is it possible to call the servlet without web.xml ?</p>