Bonjour tout le monde,

J'ai un problème, je veux vérifier les champs dans une jsp mais les code que j'essaye de faire ne fonctionne pas et je comprens pas pourquoi est-ce que qu'elqun peut m'aider??
voilà mon code :
<code>
<%--
- Author(s) :Magali Mathieu
- Date :7/05/2007
- @(#) :
- Description : Page soumettre un ticket de la fonctionnalité contactez-nous
--%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<script language="Javascript1.1" type="text/javascript">

function chargeCategorie(){
var form = document.formulaireActionForm;
form.action = '<html:rewrite page="/formulaireAction.do"/>' + '?loadCategorie='+document.formulaireActionForm.prof.value;
form.submit();
}
}


function valider() {

// si la valeur du champ nom est vide
form.onsubmit();
if(form.nom.value == "") {
alert("saisissez le nom");
// return (false);
// }
}
// si la valeur du champ prénom est non vide
<%-- if(document.prénom.value != "") {
// alors on envoie le formulaire
document.submit();
}
else {
// sinon on affiche un message
alert("Saisissez le prénom");
}
// si la valeur du champ nom est non vide
if(document.nom.value != "") {
// alors on envoie le formulaire
document.submit();
}
else {
// sinon on affiche un message
alert("Saisissez le nom");
}// si la valeur du champ nom est non vide
if(document.nom.value != "") {
// alors on envoie le formulaire
document.submit();
}
else {
// sinon on affiche un message
alert("Saisissez le nom");
}// si la valeur du champ nom est non vide
if(document.nom.value != "") {
// alors on envoie le formulaire
document.submit();
}
else {
// sinon on affiche un message
alert("Saisissez le nom");
}
}--%>
</SCRIPT>
<html:form name="formulaireActionForm" type="com.experian.pid.web.contact.forms.FormulaireActionForm" action='<%="/contact/formulaire.do"%>' method="post" onsubmit="return true">

<TABLE cellSpacing="0" cellPadding="0" width="600" border="0" align="center">
<TR>
<td class="Titre" valign="middle" align="center">
Soumettre un ticket
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="600" align="center" background="<html:rewrite page='/img/ong_fd2.gif'/>" border=0>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=300 background="<html:rewrite page='/img/ong_fd1.gif'/>" border=0>
<TR>
<TD width=10><html:img height="30" page="/img/ong1.gif" width="10" />
</TD>
<TD align="left" >
<DIV class="TitreOnglet" align="center">
Soumettre un nouveau ticket.
</DIV>
</TD>
<TD align=right width=10><html:img height="30" page="/img/ong2.gif" width="15" />
</TD>
</TR>
</TABLE>
</TD>
<TD align=right><html:img height="30" page="/img/ong_droit.gif" width="32" border="0" />
</TD>
</TR>
</TABLE>
</td>
</tr>
</table>
<TABLE cellSpacing=0 cellPadding=0 width="600" align="center" bgColor=#ffffcc border=0 class="txtform">
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<TR class="txtform">
<TD>
&nbsp;&nbsp;<BIG>Civilit&eacute; :</BIG> &nbsp;
</TD>
</tr>

<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr >
<td colspan="3">
&nbsp;&nbsp; &nbsp;&nbsp;*Nom : <html:text name="formulaireActionForm" property="nom">
</html:text>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;*Pr&eacute;nom : <html:text name="formulaireActionForm" property="prenom">
</html:text>
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;<BIG>Coordonnées:</BIG>
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td colspan="3">
&nbsp;&nbsp; &nbsp;&nbsp;*E-mail personnel : <html:text name="formulaireActionForm" property="mail">
</html:text><small> (l'e-mail doit être différent de @jedeclare.com)</small>

</td>
</tr>
<tr>
<TD>
&nbsp;&nbsp; &nbsp;&nbsp;T&eacute;l&eacute;phone : <html:text name="formulaireActionForm" property="telephone">
</html:text>
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;<BIG>Message :</BIG>
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;Votre message concerne :
<html:select name="formulaireActionForm" onchange="chargecategorie();" property="idCategorieSelected">
<html:optionsCollection name="formulaireActionForm" property="listeCategorie" label="libelle" value="id"/>
</html:select>
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;Niveau de priorit&eacute; : <html:select property="niveauUrgence">
<html:option value="normal">normal</html:option>
<html:option value="urgent">urgent</html:option>
</html:select>
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td colspan="3">
&nbsp;&nbsp;*Message :
&nbsp;&nbsp;*Sujet:<html:text name="formulaireActionForm" property="sujet">
</html:text><small>
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;*message : <br> &nbsp;&nbsp;&nbsp;&nbsp<html:textarea rows="24" styleId="message" style="width:95%; " property="message"> </html:textarea>
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;Nombre de fichier : <html:select name="formulaireActionForm" property="nbFichier">
<html:option value="0">0</html:option>
<html:option value="1">1</html:option>
<html:option value="2">2</html:option>
<html:option value="3">3</html:option>
<html:option value="4">4</html:option>
</html:select>
</td>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td class="copy"COLSPAN=2>&nbsp;&nbsp;&nbsp;&nbsp;Fichier attaché
<input type=file name="FILE_1" style="width:400" size="18">
</TD>
</TR>
<TR>
<TD>
&nbsp;&nbsp;&nbsp;&nbsp;<small>(Total des fichiers: 2Mo)</small>
</TD>
</tr>
<tr>
<td colspan="2" >
<p class="justify">&nbsp;</p>
</td>
</tr>
<tr>
<td colspan="2" align="center">
&nbsp;&nbsp; <html:image page="/img/envoyer.png" onclick="envoyer=true;" border="0" property="envoyer"/>

</td>
</tr>
<tr>
<td align="right">
<small>* Champs obligatoires</small>
</td>
</tr>
</table>



</html:form>

</code>