Bonjour,

J'ai un souci pour réinitialiser mes radio et checkbox ds un formulaire

Voila mon formulaire 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
 
<html:form action="/commRestoInsert2Action">
			<td>
 
			<html:hidden property="codCpt" value="${cRIF.codCpt}"></html:hidden>
			<html:hidden property="desCpt" value="${cRIF.desCpt}"></html:hidden>
			<html:hidden property="codUsa" value="${cRIF.codUsa}"></html:hidden>
 
 
			<html:radio property="typePrestResto" value="1">Repas Supplémentaire</html:radio> 
			<br>
			<br>
 
 
			<html:radio property="typePrestResto" value="2">Inscription Mensuel</html:radio> 
			<br>Qte:<html:text property="qtePrest" size="5" value=""></html:text>
 
 
			<br>
			<br>
 
			<html:radio property="typePrestResto" value="3">Inscription Annuel</html:radio>
			<br>Choix des jours: 	Lu<html:checkbox property="lundi" value="true"></html:checkbox>&nbsp;
									Ma<html:checkbox property="mardi" value="true"></html:checkbox>&nbsp;
									Je<html:checkbox property="jeudi" value="true"></html:checkbox>&nbsp;
									Ve<html:checkbox property="vendredi" value="true"></html:checkbox>&nbsp;
 
			<br>
			<br>
 
			<div align="center"><html:submit value="Continuer - Etape 2"/>
				</div>
			</html:form>
quand je lance une première fois pas de souci, mon bouton radio par default est le premier et mes checkbox sont vide.
Si je valide ma page et que je refait appel à cette page, les radio et checkbox ont conservés mon dernier enregistrement en spécifiant automatiquement checked="checked" sur mon code source.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
<input type="radio" name="typePrestResto" value="3" checked="checked">Inscription Annuel
			<br>Choix des jours: 	Lu<input type="checkbox" name="lundi" value="true" checked="checked">&nbsp;
									Ma<input type="checkbox" name="mardi" value="true" checked="checked">&nbsp;
									Je<input type="checkbox" name="jeudi" value="true">&nbsp;
									Ve<input type="checkbox" name="vendredi" value="true">&nbsp;
Je voudrais réinitialiser mes boutons et cases.
Alors j'ai vu 2,3 discussions, j'ai essayé la methode reset dans l'ActionForm mais rien n'y fait !!!
Quelqu'un aurait une solution .?