Bonjour à tous,
Lorsque je submit mon formulaire qui se nomme createApplicant, la page suivante affichée est createApplicant.do
le formulaire :
La validation du formulaire est bien effectué mais il appel pas la méthode execute de mon bean struts action 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79 <html:form action="createApplicant" styleId="createApplicant"> <fieldset> <legend>Create An applicant</legend> <fieldset> <legend>Personal data</legend> <table> <tr> <td><bean:message key="applicant.gender"/> :</td> <td> <html:select property="gender" tabindex="1"> <html:option value="Mister"/> <html:option value="Miss"/> <html:option value="Madam"/> </html:select> </td> </tr> <tr> <td><bean:message key="applicant.lastname" /> : </td> <td><html:text property="lastname" title="lastname" styleId="lastname" tabindex="2" onblur="javascript:getFocusField(this)"></html:text></td> </tr> <tr> <td><bean:message key="applicant.firstname"/> : </td> <td><html:text property="firstname" styleId="firstname" tabindex="3" onfocus="javascript:getFocusField(this)"></html:text></td> </tr> <tr> <td><bean:message key="applicant.birthday"/> <bean:message key="applicant.birthday.format"/> : </td> <td> <html:text property="day" title="day" maxlength="2" size="2" tabindex="4" onblur="javascript:getFocusField(this)"/> <html:text property="month" title="month" maxlength="2" size="2" tabindex="5" onblur="javascript:getFocusField(this)" /> <html:text property="year" title="year" maxlength="4" size="4" tabindex="6" onblur="javascript:getFocusField(this)" /> </td> </tr> <tr> <td><bean:message key="applicant.nationality"/> : </td> <td><html:text property="nationality" tabindex="7" onblur="javascript:getFocusField(this)"/></td> </tr> <tr> <td><bean:message key="applicant.address" /> : </td> <td><html:text property="address" tabindex="8" onblur="javascript:getFocusField(this)"></html:text></td> </tr> <tr> <td><bean:message key="applicant.pc" /> : </td> <td><html:text property="pc" tabindex="9" onblur="javascript:getFocusField(this)"></html:text></td> </tr> <tr> <td><bean:message key="applicant.city"/> : </td> <td><html:text property="city" tabindex="10" onblur="javascript:getFocusField(this)"></html:text></td> </tr> <tr> <td><bean:message key="applicant.country"/> : </td> <td><html:text property="country" tabindex="11" onblur="javascript:getFocusField(this)"></html:text></td><br> </tr> <tr> <td><bean:message key="applicant.phone"/> : </td> <td><html:text property="phone" tabindex="12" onblur="javascript:getFocusField(this)"></html:text></td><br> </tr> <tr> <td><bean:message key="applicant.gsm"/> : </td> <td><html:text property="gsm" tabindex="13" onblur="javascript:getFocusField(this)"></html:text></td><br> </tr> <tr> <td><bean:message key="applicant.mail"/> : </td> <td><html:text property="mail" tabindex="14" onblur="javascript:getFocusField(this)"></html:text></td><br> </tr> </table> </fieldset> <html:submit tabindex="15"><bean:message key="button.submit" /></html:submit> <html:reset tabindex="16"><bean:message key="button.reset" /></html:reset><br> <div id="error"> <html:errors property="name"/> <html:errors property="firstname"/><br> <html:errors property="birthday"/><br> <html:errors property="email"/><br> </div> </fieldset> </html:form>
peut etre une erreur de mapping mais j'ai deja verifier plusieur fois
merci pour vos réponses
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 <action input="/applicant/applicant.jsp" name="CreateApplicantForm" path="/createApplicant" scope="session" type="be.qspin.qats.struts.action.CreateApplicantAction"> <forward name="success" path="/applicant/applicant.jsp"/> </action>
Partager