STRUTS

larcenmen Messages postés 7 Date d'inscription jeudi 21 octobre 2004 Statut Membre Dernière intervention 28 août 2007 - 28 août 2007 à 02:19
larcenmen Messages postés 7 Date d'inscription jeudi 21 octobre 2004 Statut Membre Dernière intervention 28 août 2007 - 28 août 2007 à 16:28
BONJOUR TOUS LE MONDE
ET MERCI D'AVANCE. JE DEVELOPPE UNE APPLICATION EN JSP ET STRUTS SUR NETBEANS. ET J'AI UN FORMULAIRE INFOP.JSP QUI CONTIENT UNE ACTION POUR L'AJOUT A LA BASE DE DONNEES ET UNE AUTRE ACTION POUR AFFICHER UN CHAMPS INCREMANTE DE LA BASE ET TOUS CA MARCHE BIEN MAIS LORSQUE J'AI AJOUTE UNE AUTRE ACTION POUR REMPLIR UN  COMBO DE LA BASE SUR LA MEME PAGE CA NE MARCHE PAS

PAGE INFO.JSP/////////////////////////////////////////////////////
         <form  method="POST" action="addinfop.do" onSubmit="return validacion(this)">
                 ----

          <NOBR>Informations personnelles</NOBR>,
          <NOBR>Activit&eacute;</NOBR>,
          <NOBR>Informations sociales</NOBR>,
          <NOBR>Identit&eacute;</NOBR>,
        ,
     
      ----

              <table width="85%" border="0" cellspacing="0" cellpadding="0" align="center">

            <logic:iterate id="element" name="list" >
              ----

       
               , Num&eacute;ro b&eacute;n&eacute;ficiaire
                    \"></td>
             
           </logic:iterate>
         
            </TD>
      </TR>
      <TR>
          <TD COLSPAN=5 CLASS="TabContent TabActiveBackground TabActiveBorderLeftRight TabContentBottom">    
        

                        ----

               Agence,
            
             ----

               Nom agence,
               <select name=\"code_agence\" id=\"code_agence\">
                       <logic:iterate id=\"elemento\" name=\"listeag\" >  
                       <option></option>
                         </logic:iterate>
                   </select>
                                  
                 
              ,
            
          

JUSQU'A LA FIN 
ET STRUS -CONF- XML //////////////////////////////////////////////////////////////////////////////
  
            <forward name="success" path="/infop.jsp"/>
            <forward name="echec" path="/fail.jsp"/>
       
      
            <forward name="success" path="/listeclient.jsp"/>
            <forward name="echec" path="/fail.jsp"/>
       
            
             <forward name="success" path="/infop.do" redirect="true"/>
             <forward name="echec" path="/fail.html"/>
       
 
            <forward name="success" path="/infop.jsp"/>
            <forward name="echec" path="/fail.jsp"/>
         
      JUSQU'A LA FIN 
/////////////////////////////////////////////
SVP DE M'AIDER ET MERCI

2 réponses

cs_DARKSIDIOUS Messages postés 15814 Date d'inscription jeudi 8 août 2002 Statut Membre Dernière intervention 4 mars 2013 130
28 août 2007 à 07:01
J'ai pas tout compris ton cheminement là : j'suis pas sûr que tu puisse déclarer 2 actions avec le même path : laquelle est exécutée... la première, la seconde, ou les deux ? Moi je dirais la seconde qui écrase la première...

Le principe étant d'avoir un Action par path d'habitude ! Où alors d'avoir un Action qui appelle un deuxième Action qui lui va déclenché l'affichage de la JSP !
0
larcenmen Messages postés 7 Date d'inscription jeudi 21 octobre 2004 Statut Membre Dernière intervention 28 août 2007
28 août 2007 à 16:28
VOUS AVEZ RAISON.J' AI MAL POSé LA QUESTION ET MERCI POUR VOTRE AIDE
0
Rejoignez-nous