bonjour,

voici le contenu de struts-config.xml .

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
 
<form-beans>
<form-bean
name="formulaire"
type="serveur.Formulairesaisie"
/>
</form-beans>
 
<action-mapping>
 
<action path="/gestionform"
name ="formulaire"
scope="request"
validate="true"
type="projet.formaction"
parameter="operation"
>
 
<forward name="add" path="/gestionform.jsp"/>
<forward name="sup" path="/gestionform.jsp"/>
</action>
 
</action-mapping>
 
la ligne concernant le .resources /////dejà fait

le code de l'action :
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
31
32
33
34
 
public class formaction extends  LookupDispatchAction {
 
protected Map getKeyMethodMap(){
	        Map map =  new HashMap();
	    map.put("projet.add","add");
	    map.put("projet.sup","sup");
	      return map;
	    }
 
 
 
	public ActionForward add(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException {
 
                     return mapping.findForward("add");
 
 
                               }
 
 
public ActionForward sup(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException {
 
                     return mapping.findForward("sup");
 
 
                               }
 
 
 
}

dans le fichier ressource
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 
projet.add=add
projet.sup=sup

la jsp contient

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
 
<html:form action="/gestionform" name="formulaire" type="projet.Formulairesaisie" >
 
<td><html:submit property="operation">
                      <bean:message key="projet.add"/>
                          </html:submit></td>
                  <td> <html:submit property="operation">
                      <bean:message key="projet.sup"/>
                          </html:submit></td>
 
</htm:form>

je signale que j'utilise Struts 1.1

je recois le message suivant :
Request[/gestionform] does not contain handler parameter named operation
Merci d'avance