bonjour


je voulais remplir un tableau au fur et à mesure avec ce que je selectionne dans 2 combo et ce que je remplis dans 2 champs de text
on m'a conseillé d'utiliser les tag nested

voici le code de ma jsp
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
 
 <nested:form action="/recep3.do" method="post">
 
  <html:hidden property="hidden" value="default"></html:hidden>
 
 
  <table border="0">
   <tr>
   <td>Fournisseur:</td>
   <td> <html:select property="fournisseur" > 
   <html:option value=""></html:option>  
  <html:options property="nomFournisseur"/>
   </html:select>
    </td>
    </tr>
   <tr>
    <td>N° Ref Ext:</td>
   <td>
   <html:text property="ref"></html:text>
   </td></tr>
   <tr>
   <td>N° Po :</td>
   <td>
   <html:text property="PO"></html:text>
   </td>
    </tr>
    <tr>
    <td>Note de réception:</td>
    <td>
    <html:textarea property="note"></html:textarea>
    </td>
    </tr>
 
 
	 <tr>
   <td>Magasin :</td>
   <td>
   <html:text property="magas" disabled="true"></html:text>
   </td>
    </tr>
 
 
 
 
 
   </table>
   <br/>
    <br/>
   <table border="0" width="100%|20">
     <tr>
    <nested:nest property="recep">
   <td> 
 
       <nested:select  property="article" onchange="setHidden('combo');document.recepForm.submit();">
      <html:option value=""></html:option> 
         <nested:options property ="nomArticle"/>
           </nested:select>
 
   </td>
 
 
 
 
   <logic:equal name="recepForm" property="type" value="SCRATCH">
   <td> <nested:text property="ND" maxlength="15" ></nested:text>  </td>
 
<td> <nested:text property="NF"  maxlength="15" ></nested:text>  </td>
 
      </logic:equal>
 
 
       <logic:notEqual name="recepForm" property="type" value="SCRATCH">
   <td> <nested:text property="ND" maxlength="12" ></nested:text>  </td>
 
<td> <nested:text property="NF"  maxlength="12" ></nested:text>  </td>
 
      </logic:notEqual>
 
 
 
 
 
   <td>
      <logic:equal name="recepForm" property="type" value="SIMPOST">
 
      <nested:select  property="profil"  disabled="false">
    <html:option value=""></html:option> 
      <nested:options property ="nomProfil"></nested:options>
      </nested:select> 
      </logic:equal>
 
      <logic:notEqual name="recepForm" property="type" value="SIMPOST">
 
     <nested:select  property="profil"  disabled="true">
  <html:option value=""></html:option> 
 
      <nested:options property ="nomProfil"/>
      </nested:select>
       </logic:notEqual>
 
 
  </td> 
 
    </nested:nest>
   </tr>
 
 
   </table>
 
   <!--
	 <html:link page="/recep1.do">Ajouter une ligne</html:link>
	-->
 
 
 
   <br/>
   <br/>
   <tr>
   <td>
   <nested:submit onclick="setHidden('ajouter');">ajouter</nested:submit>
  <td/>
  <td>
   <nested:submit onclick="setHidden('supprimer');">supprimer</nested:submit>
   <td/>
   <td>
  <nested:submit onclick="setHidden('valider');">valider</nested:submit>
  </td>
   <tr/>
  </nested:form>
 
 
 
 
	<table  border="1" width="100%|20">
 
 
	<tr>
   <th>Article</th>
   <th>Numéro de série début</th>
   <th>Numéro de série fin</th>
   <th>Profil</th>
   <th>Quantité</th>
   </tr>
 
 
 
 
 
 
 
	<nested:root name="recepForm">
		<nested:iterate property="recepList">
 
 
			<tr onmouseover="this.style.backgroundColor='bleu'"
		onmouseout="this.style.backgroundColor='white'">
 
				<td><nested:write property="article"/></td>
				<td><nested:write property="ND"/></td>
				<td><nested:write property="NF"/></td>
				<td><nested:write property="profil"/></td>
				<td><nested:write property="qte"/></td>
			</tr>
		</nested:iterate>
	</nested:root>
</table>
   </body>
 
</html:html>
ça marche bien mais je suis obligué maintenant d'utiliser struts layout
alors par quoi je dois remplaçer nested nest si je travail avec struts layout

merci bcp