RECHERCHER :
COMMUNAUTE MP
Identifiez vous ...
Devenir Membre
J'ai oublié mon MDP
DOMAINE MP
Bavardages
Langages Généraux
Langages Web
Langages DotNet
Autres langages
Dev. Jeux Video
Sécurité
Sys. Exploitation
Graphismes
Logiciels
Réseaux
Bases de données
Méthodologies
Emplois High-tech
Aide juridique
Articles juridiques
FORUM
Index des forums
Ajouter un sujet
Rechercher sujet
Contact Responsable
Devenir modérateur
CHAT MP IRC
Votre pseudo ...
Serv: irc.irc-land.org
Chan: #MoteurProg
PARTICIPER
Plus de 3500 emplois.
Rechercher un job
Déposez votre CV
Emplois High-tech

Visiteur MP

 [Struts]2 tags logic:iterate imbriquée

Forum : J2EE
Sous Catégorie : Aucune
Type du sujet : Sujet Normale
FAQ : FAQ J2EE

SUIVI DES SUJETS PAR MAIL

SUIVI PAR MAIL INACTIF

RESOLUTION DU SUJET SUJET NON RESOLU
BLOQUAGE DU SUJET SUJET ACTIF
APPARTENANCE A LA FAQ N'APPARTIENT PAS A LA FAQ


POSTER UN NOUVEAU SUJET REPONDRE A CE SUJET

FORUM J2EE

PREMIERE PAGE

PAGE PRECEDENTE

Page précedente

Page suivante

PAGE SUIVANTE

DERNIERE PAGE
benjiSNC
Nouveau membre
Inscrit : 15/06/2006
Messages : 1
Message
#101104
Posté le 15/06/06 à 16:08
Bonjour,
Dans le cadre d'un projet en struts, je veux afficher dans une page une collection de collection (tableau à 2 dimensions de String dans des champs texte).

Voici mon ActionForm :

public class MatricesForm extends BasicForm { /** Le traceur de cette classe */ private static Logger log = BASLogFactory.getLogger(MatricesForm.class); private static Locale currentLocale = new Locale("fr", "FR"); private static ResourceBundle messages = ResourceBundle.getBundle("com.sncf.pli.jpbas.application", currentLocale); /** La MATRICE */ private List matrice=new ArrayList(); /** Le booléen servant à désactiver un bouton */ private boolean disabled = false; /** * @return Returns the disabled. */ public boolean isDisabled() { return disabled; } /** * @param disabled The disabled to set. */ public void setDisabled(boolean disabled) { this.disabled = disabled; } /** * @return Returns the matrice. */ public List getMatrice() { return matrice; } /** * @param matrice The matrice to set. */ public void setMatrice(List matrice) { this.matrice = matrice; } /** * * @param i * @param j * @return ClasseParametrage */ public List getClasseParametrageTab(int i) { log.debug("debut getClasseParametrage " +i); return (List)matrice.get(i); } /** * * @param i * @param j * @param classeParametrage */ public void setClasseParametrageTab(List liste) { matrice.add(liste); }


mon jsp :

<bean:define id="matrice" name="matricesForm" property="matrice" scope="request"/> <html:form action="/matriceSegmentation.do?action=init"> <table class="Table_Fiche1" cellSpacing="1" cellPadding="0" width="900" border="1" align="center"> <logic:notEmpty name="matrice"> <logic:notEqual name="tailleMatrice" value="0"> <logic:iterate name="matrice" id="classeParametrageTab" indexId="indexI" > <tr> <logic:iterate name="classeParametrageTab" id="classeParametrage" indexId="indexJ"> <td align="center"> <html:text indexed="true" name="classeParametrage" size="10" maxlength="10" property="classe" /> </td> </logic:iterate> </tr> </logic:iterate> </logic:notEqual> </logic:notEmpty> </table> <logic:notEmpty name="matrice"> <table width="900" height="25" border="0" cellpadding="0" cellspacing="0" class="Table_centre_petit" align="center"> <tr bgcolor="#F2F2F7"> <td align="center"> <logic:equal name="matricesForm" property="disabled" value="true"> <html:button onclick="validationBoutonMatrice(this,'','','sl');" property="update" styleClass="Bouton" disabled="true" tabindex="2"> <bean:message key="classe.action.update.label" /> </html:button> </logic:equal> <logic:equal name="matricesForm" property="disabled" value="false"> <html:button onclick="validationBoutonMatrice(this,'','','sl');" property="update" styleClass="Bouton" tabindex="2"> <bean:message key="classe.action.update.label" /> </html:button> </logic:equal> </td> </tr> </table> </logic:notEmpty> <br /> </html:form>


L'affichage de la matrice se passe bien mais quand je submit le formulaire , l'actionForm ne récupère pas les données des champs texte.

Merci

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

Publicité
Inscrit : X
Messages : X
Message
#Aucun

HAUT DE PAGE

  

totoprog
Nouveau membre
Avatar de totoprog
Inscrit : 03/03/2007
Messages : 25
Message
#138947
Posté le 22/07/07 à 16:43
slt benjiSNC ,desolé j'ai pas des reponses a votre question, mais je vous prie de m'envoyer des liens vers des tutorials importants avec des exemples a propos du Struts(je ss debuteur a ce framwork).
merci

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 


    PAGE : [1]



.: Site Web développé par Julien Pichot et l'équipe MPWG avec www.evolvia-web.com :.