title: The requested resource is not available. Apache Tomcat/7.0.42
body: <p>I created a <code>jsp file</code> in the <code>WebContent</code> folder, which has a form.</p>
  <p>The action of the form is a <code>Servlet</code>, but when I click on the submit button, I get this message :</p>
  <p><img src="https://i.stack.imgur.com/JocSP.png" alt="enter image description here" /></p>
  <p>And this is my project structure :</p>
  <p><img src="https://i.stack.imgur.com/Mrosf.png" alt="enter image description here" /></p>
  <p>How can I solve this problem ?</p>
  <h1>Edit 1:</h1>
  <p>this my jsp file :</p>
  <pre><code>&lt;%@ include file=&quot;inc/header.jsp&quot; %&gt;
  &lt;h1&gt;Créer un compte!&lt;/h1&gt;
  
  &lt;form action=&quot;Registration&quot; method=&quot;post&quot;&gt;
      &lt;fieldset&gt;
          &lt;legend&gt;Informations personnels&lt;/legend&gt;
          &lt;label for=&quot;nom&quot;&gt;Nom &lt;/label&gt;
          &lt;input type=&quot;text&quot; name=&quot;nom&quot;&gt;
          &lt;label for=&quot;prenom&quot;&gt;Prénom &lt;/label&gt;
          &lt;input type=&quot;text&quot; name=&quot;prenom&quot;&gt;
          &lt;label for=&quot;email&quot;&gt;E-Mail &lt;/label&gt;
          &lt;input type=&quot;text&quot; name=&quot;email&quot;&gt;
          &lt;label for=&quot;sexe&quot;&gt;Sexe &lt;/label&gt;
          &lt;div class=&quot;radio_check&quot;&gt;
              &lt;input type=&quot;radio&quot; value=&quot;F&quot; name=&quot;sexe&quot;&gt; Mâle
              &lt;input type=&quot;radio&quot; value=&quot;F&quot; name=&quot;sexe&quot;&gt; Female
          &lt;/div&gt;
          &lt;label for=&quot;dateNaissance&quot;&gt;Date de naissance : &lt;/label&gt;
          &lt;input type=&quot;datetime&quot; name=&quot;dateNaissance&quot;&gt;
      &lt;/fieldset&gt;
      &lt;fieldset&gt;
          &lt;legend&gt;Infos de connexion&lt;/legend&gt;
          &lt;label for=&quot;pseudo&quot;&gt;Pseudo &lt;/label&gt;
          &lt;input type=&quot;text&quot; name=&quot;pseudo&quot;&gt;
          &lt;label for=&quot;mdp&quot;&gt;Mot de passe &lt;/label&gt;
          &lt;input type=&quot;text&quot; name=&quot;mdp&quot;&gt;
          &lt;label for=&quot;mdp2&quot;&gt;Confirmation du mot de passe &lt;/label&gt;
          &lt;input type=&quot;text&quot; name=&quot;mdp2&quot;&gt;
          &lt;div class=&quot;radio_check&quot;&gt;
              &lt;label for=&quot;abonner&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;abonner&quot;&gt;Abonnez-vous au blog&lt;/label&gt;
          &lt;/div&gt;
      &lt;/fieldset&gt;
      &lt;input type=&quot;submit&quot; value=&quot;Créer un compte&quot;&gt;
  &lt;/form&gt;
  
  &lt;%@ include file=&quot;inc/footer.jsp&quot; %&gt; 
  </code></pre>
  <p>And this is my Servlet :</p>
  <pre><code>package com.tp1.servlets;
  
      import java.io.IOException;
      import java.text.ParseException;
      import java.text.SimpleDateFormat;
      import java.util.Date;
      
      import javax.servlet.ServletException;
      import javax.servlet.annotation.WebServlet;
      import javax.servlet.http.HttpServlet;
      import javax.servlet.http.HttpServletRequest;
      import javax.servlet.http.HttpServletResponse;
      
      import com.tp1.beans.Compte;
      
      /**
       * Servlet implementation class Authentification
       */
      @WebServlet(&quot;/Authentification&quot;)
      public class Registration extends HttpServlet {
          private static final long serialVersionUID = 1L;
      
          public Registration() {
              super();
          }
      
      
          protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          }
      
          /**
           * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
           */
          protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              String nom              = request.getParameter(&quot;nom&quot;);
              String prenom           = request.getParameter(&quot;prenom&quot;);
              String email            = request.getParameter(&quot;email&quot;);
              String sexe             = request.getParameter(&quot;sexe&quot;);
              Date dateNaissance;
              try {
                  dateNaissance = new SimpleDateFormat(&quot;dd-MM-yyyy&quot;).parse(request.getParameter(&quot;dateNaissance&quot;));
              } catch (ParseException e) {
                  dateNaissance = new Date();
              }
              String pseudo           = request.getParameter(&quot;pseudo&quot;);
              String mdp              = request.getParameter(&quot;mdp&quot;);
              Boolean abonner         = request.getParameter(&quot;abonner&quot;) == &quot;on&quot; ? true : false;
              
              Compte c = new Compte(nom, prenom, email, sexe, dateNaissance, pseudo, mdp, abonner);
              
              request.setAttribute(&quot;compte&quot;, c);
              
              this.getServletContext().getRequestDispatcher(&quot;signup_successful.jsp&quot;).forward(request, response);
          }
      
      }
  </code></pre>