Bonjour
j'ai suivi le fac suivant fac pour réaliser une page avec plusier bouton submit, j'ai codé ca
formulaire
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
<html:form action="/confirmationCreatProjectReq">								
	<html:hidden property="valueButton" value="default"/>
	<html:submit onclick="setHidden('Creat');">OK</html:submit>
	<html:submit onclick="setHidden('Cancel');">Cancel</html:submit>
	</html:form>
Dans struts-config
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
 
<form-beans>
	<form-bean name="frmConfirmationCreatProjectReq"  type="com.atosorigin.ssc.portal.beans.forms.ConfirmationCreatProjectReqProBean" />
</form-beans>
<action
       path="/confirmationCreatProjectReq" 
	name="frmConfirmationCreatProjectReq" 			    type="com.atosorigin.ssc.portal.actions.ActionConfirmationCreationReq" 
	parameter="valueButton" 
	scope="session" 
	validate="false">
 
	<forward name="myForwardProjectCreated" path="/jsp/projectReqProCreated.jsp" />
	<forward name="myForwardError" path="/jsp/creatProjectReqPro.jsp" />
	<forward name="myForwardCreatProjectReq" path="/jsp/creatProjectReqPro.jsp" />
</action>
j'ai bien mon beans du formulaire
et pour l'ActionForm j'ai ça
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
 
package com.atosorigin.ssc.portal.actions;
 
import java.io.IOException;
 
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
 
import org.apache.log4j.Logger;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
 
/**
 * Action class
 * 
 * @author sgenoux
 *
 */
 
public class ActionConfirmationCreationReq extends DispatchAction {
 
private final static Logger logger = Logger.getLogger(MyActionManager.class);
 
	public ActionForward Creat (final ActionMapping mapping,
									final ActionForm form,
									final HttpServletRequest request,
									final HttpServletResponse response) throws IOException, ServletException {
 
		ActionForward forward = new ActionForward();
		forward = mapping.findForward(ActionForwardConstants.FORWARD_ACTION_ProjectReqCreated);
		return forward;
 
	}
 
	public ActionForward Cancel (final ActionMapping mapping,
			final ActionForm form,
			final HttpServletRequest request,
			final HttpServletResponse response) throws IOException, ServletException {
 
		ActionForward forward = new ActionForward();
		forward = mapping.findForward(ActionForwardConstants.FORWARD_ACTION_CreatProjectReq);
		return forward;
 
	}
 
}
La page est affiché correctement mais lorsque je clique sur l'un des bouton j'aurai l'erreur suivant
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
 
exception
 
javax.servlet.ServletException: Action[/confirmationCreatProjectReq] does not contain specified method (check logs)
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
cause mère
 
java.lang.NoSuchMethodException: Action[/confirmationCreatProjectReq] does not contain specified method (check logs)
	org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:261)
	org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170)
	org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
	org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
	org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
	org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
note La trace complète de la cause mère de cette erreur est disponible dans les fichiers journaux de Apache Tomcat/5.5.20.
est ce que quelqu'un peut m'aider SVP.