Salut ,

j'ai fais un formulaire avec une page jsp administrationForm.
J'ai fait une action correspondant à un formulaire dans cette page ContactAjoutAction.
Lorsque l'utilisateur ajoutera un contact c'est cette action qui sera activé.
Mais lorsque j'excute la page administration et que j'utilise cette fonctionnalité, une page d'erreur m'indique
qu'il ne trouve pas le servlet action or dans le fichier de config j'ai mis le bon package..
voici l'erreur qu'il m'affiche:
Erreur 404
type Rapport d'état
message Servlet action n'est pas disponible.
description La ressource demandée (Servlet action n'est pas disponible.) n'est pas disponible.
voici l'action défini dans le fichier de config:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
<action path="/InputSubmit"
                type="fr.edition.eni.action.ContactAjoutAction"
                name="administrationForm"
                scope="request"
                input="/Web Pages/administrationForm.jsp">
            <forward name="success" path="/Web Pages/administrationForm.jsp"></forward>
            <forward name="erreur" path="/Web Pages/administrationForm.jsp"></forward>
        </action>
le code de contactAjoutAction:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public class ContactAjoutAction extends Action {
 
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, 
            HttpServletResponse response)throws Exception{
 
    AdministrationForm monAdministrationForm=(AdministrationForm) form;
    DataSource ds=getDataSource(request, "enidb");
    Connection  cnx=ds.getConnection();
    Contact monContact= new Contact();
    monContact.setNomContact(monAdministrationForm.getNomContact());
    monContact.setMailContact(monAdministrationForm.getMailContact());
    monContact.setTelephoneContact(monAdministrationForm.getTelephoneContact());
    monContact.setFonctionContact(monAdministrationForm.getFonctionContact());
    monContact.setEquipeContact(monAdministrationForm.getEquipeContact());
    return monContact.insertContact(mapping,cnx);
    }
 
 
}
le code du form correspondant:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
<!--début du formulaire pour ajouter contact-->
 
                                  <form method=post action="InputSubmit.do">
                                    <td
 style="font-family: Arial; font-weight: bold;"><small>Noms</small></td>
                                    <td
 style="font-family: Arial; font-weight: bold;"><small><input
 size="25" name="ajoutdossier"></small></td>
                                    <td
 style="font-family: Arial; font-weight: bold;"><small>Fonctions</small></td>
                                    <td
 style="font-family: Arial; font-weight: bold;"><small><input
 size="25" name="ajoutdossier"></small></td>
                                    <td></td>
                                  </tr>
                                  <tr>
                                    <td
 style="font-family: Arial; font-weight: bold;"><small>Mail</small></td>
                                    <td
 style="font-family: Arial; font-weight: bold;"><small><input
 size="25" name="ajoutdossier"></small></td>
                                    <td
 style="font-family: Arial; font-weight: bold;"><small>T&eacute;l&eacute;phone</small></td>
                                    <td
 style="font-family: Arial; font-weight: bold;"><small><input
 size="25" name="ajoutdossier"></small></td>
 <td><input type="submit" style="width: 100px; height: 20px;" value="ajouterContact" name="AjoutContact" />
 </td>
 <!--fin du formulaire pour ajouter contact-->
Si quelqu'un voit ou et l'erreur ?