IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Struts 1 Java Discussion :

lien <html:link> dans un logic:iterate, update de chaque row


Sujet :

Struts 1 Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Septembre 2008
    Messages
    190
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2008
    Messages : 190
    Par défaut lien <html:link> dans un logic:iterate, update de chaque row
    bonjour ,
    dans une page jsp, je recupere une liste d'enregistrements de la base de donnee
    et cette liste je l'affiche row par row, et devant chaque row , j'ajoute un lien <html:link> , edit
    une fois l'user clique sur edit
    je passe chaque champs (bean:write) en champs editable (html:text)
    le probleme est comment puis je ajouter en parametre au lien les nouvelle modifs
    du user

    Merci d'avance pour l'aide

  2. #2
    Membre confirmé
    Profil pro
    Inscrit en
    Septembre 2008
    Messages
    190
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2008
    Messages : 190
    Par défaut
    svp , c'est vraiment urgent , je dois livrer :-(
    ce dessous le code

    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
    		<logic:notEqual name="userIt" property="userEditMode" value="0">
    						<td
    							style="width: 615px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; height: 24px;">
    						&nbsp; <span style="font-size: 10pt"> <html:text
    							property="userNom" style="width: 132px" name="userIt" /></span></td>
    						<td
    							style="width: 23004px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px; text-align: left;">
    						<span style="font-size: 10pt"> <html:text
    							style="width: 127px" name="userIt" property="userPrenom" /></span></td>
    						<td
    							style="width: 9113px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px; text-align: center;">
    						<span style="font-size: 10pt"> <html:text
    							style="width: 63px" name="userIt" property="userIdentifiant" /></span></td>
    						<td
    							style="width: 10320px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px; text-align: center;">
    						<span style="font-size: 10pt"> <html:text
    							style="width: 63px" name="userIt" property="userPwd" /></span></td>
    						<td
    							style="width: 15787px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px; text-align: center;">
    						<span style="font-size: 10pt"> <nested:root name="userIt">
    							<nested:nest property="profil">
    								<nested:select property="profilId">
    									<nested:optionsCollection name="userEditForm"
    										property="profilsList" value="profilId" label="profilLabel" />
    								</nested:select>
    							</nested:nest>
    						</nested:root> </span></td>
    						<td
    							style="border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; width: 4299px; border-bottom: #f0f8ff 1px solid; height: 26px; background-color: #f0f8ff">
    						<span style="font-size: 10pt"> <nested:root name="userIt">
    							<nested:nest property="statut">
    								<nested:select property="statutId">
    									<nested:optionsCollection name="userEditForm"
    										property="statutsList" value="statutId" label="statutLabel" />
    								</nested:select>
    							</nested:nest>
    						</nested:root> </span></td>
     
    						<bean:define id="uNom" name="userIt" property="userNom" />
    						<bean:define id="uPrenom" name="userIt" property="userPrenom" />
    						<bean:define id="uIdentifiant" name="userIt"
    							property="userIdentifiant" />
    						<bean:define id="uPwd" name="userIt" property="userPwd" />
     
    						<%
    								java.util.HashMap params = new java.util.HashMap();
    								params.put("userNom", uNom);
    								params.put("userPrenom", uPrenom);
    								params.put("userIdentifiant", uIdentifiant);
    								params.put("userPwd", uPwd);
    								//params.put("UserProfilLabel", uProfil);
    								//params.put("statutLabel", ustatutLabel);
    								pageContext.setAttribute("paramsName", params);
    						%>
    						<td
    							style="width: 7098px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px;">
    						&nbsp; <html:link
    							action="EditUsers.do?do=updateUser&userEditMode=0"
    							name="paramsName">
    							<img src="img\valid.jpg" style="width: 20px" />
    						</html:link></td>
    					</logic:notEqual>

  3. #3
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    Le problème c'est que, lorsqu'on clique sur un lien, le formulaire n'est pas soumis.
    Donc, les paramètres passés en paramètres du lien contiendront les anciennes valeurs et non les valeurs modifiées.

  4. #4
    Membre confirmé
    Profil pro
    Inscrit en
    Septembre 2008
    Messages
    190
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2008
    Messages : 190
    Par défaut
    je vous relance les gars si jamais vous avez une idee
    merci
    Sallemel

  5. #5
    Membre confirmé
    Profil pro
    Inscrit en
    Septembre 2008
    Messages
    190
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2008
    Messages : 190
    Par défaut
    bon la j'avance un tout ptit peu :
    pour la modification de chaque row, j'ai fait un submit avec comme propriete
    updateUserButton
    et au niveau du form j'ai ajoute une methode setter
    pour ce submit : setUpdateUserButton :
    voici le code :
    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
     
    <nested:form action="EditUsers.do?do=ListUsers">
    <nested:iterate  property="users">
    <tr>
    <nested:equal property="userEditMode" value="0">
    <td
    style="width: 9543px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; text-align: left; height: 24px;">
    <span style="font-size: 10pt"><nested:write property="userNom" /></span></td>
    <td
    	style="width: 23004px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; text-align: left; height: 24px;">
    						<span style="font-size: 10pt"><nested:write property="userPrenom" /></span></td>
    <td
    	style="width: 9113px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; text-align: center; height: 24px;">
    <span style="font-size: 10pt"><nested:write property="userIdentifiant" /></span></td>
    <td	style="width: 10320px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; text-align: center; height: 24px;">
    <span style="font-size: 10pt"><nested:write 						property="userPwd" /></span></td>
    <td	style="width: 15787px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; height: 24px; text-align: center;">
    <span style="font-size: 10pt"></span> 
    	<nested:nest property="profil">
    	<nested:write property="profilLabel" />
    	</nested:nest>
    </td>
    <td
    style="border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; width: 4299px; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; height: 24px; text-align: center;">
    <span style="font-size: 10pt">
    	<nested:nest property="statut">
    								<nested:write property="statutLabel" />
    							</nested:nest>
    </span></td>
    <td
    style="width: 7098px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px;">
    	&nbsp;<nested:submit property="editUserButton" >modifier</nested:submit></td>
    </nested:equal>
    <nested:notEqual  property="userEditMode" value="0">
    <td style="width: 615px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; height: 24px;">
    &nbsp; <span style="font-size: 10pt"> <nested:text
    	property="userNom" style="width: 132px"  /></span></td>
    <td
    style="width: 23004px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px; text-align: left;">
    <span style="font-size: 10pt"> <nested:text 
    	style="width: 127px"  property="userPrenom" /></span></td>
    <td
    style="width: 9113px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px; text-align: center;">
    <span style="font-size: 10pt"> <nested:text
    	style="width: 63px" property="userIdentifiant" maxlength="8" /></span></td>
    <td
    	style="width: 10320px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px; text-align: center;">
    <span style="font-size: 10pt"> <nested:text
    							style="width: 63px" property="userPwd" maxlength="8"/></span></td>
    						<td
    							style="width: 15787px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px; text-align: center;">
    <span style="font-size: 10pt"> 
    <nested:nest property="profil">
    <nested:select property="profilId">
    <nested:optionsCollection name="userEditForm"
    property="profilsList" value="profilId" label="profilLabel" />
    							</nested:select>
    	</nested:nest>
     
    </span></td>
    <td
    style="border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; width: 4299px; border-bottom: #f0f8ff 1px solid; height: 26px; background-color: #f0f8ff">
    <span style="font-size: 10pt">
    <nested:nest property="statut"> 
    <nested:select property="statutId">
    <nested:optionsCollection name="userEditForm"
    property="statutsList" value="statutId" label="statutLabel" />
    	</nested:select>
    	</nested:nest>
    </span></td>
    <td
    	style="width: 7098px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px;">
    &nbsp; 
    <nested:submit property="updateUserButton" >valider</nested:submit>
    </td>
    </nested:notEqual>
    </tr>
    </nested:iterate>
    </nested:form>
    et voici les getter et les setter de la propriete users dans l'actionForm:
    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
     
    public class UserEditForm extends ActionForm {
     
    	public UserEditForm() {
    		// TODO Auto-generated constructor stub
    	}
     
     
    	Utilisateur user = new Utilisateur();
    	Utilisateur admin = new Utilisateur();
    		java.util.List<Statut> statutsList = new ArrayList<Statut>();
    	java.util.List<Profil> profilsList = new ArrayList<Profil>();
     
    	java.util.List<Utilisateur> users = new ArrayList<Utilisateur>();
    	/*@Override
    	public void reset(ActionMapping mapping, HttpServletRequest request) {
    		// TODO Auto-generated method stub
    		this.user=null;
    		this.admin=null;
    				this.users=null;
    	}*/
     
    	public Utilisateur getUser() {
    		return user;
    	}
    	public void setUser(Utilisateur user) {
    		this.user = user;
    	}
    	public java.util.List<Profil> getProfilsList() {
    		if (profilsList.isEmpty()) {
    			profilsList.add(new Profil(2, "Consultation"));
    			profilsList.add(new Profil(1, "Administrateur"));
    			profilsList.add(new Profil(3, "Modification"));
    		}
    		return profilsList;
    	}
     
     
    	public void setProfilsList(java.util.List<Profil> profilsList) {
    		this.profilsList = profilsList;
    	}
     
     
    	public String  getUserProfilLabel() {
    		return user.getProfil().getProfilLabel();
    	}
    	public void  setUserProfilLabel(String UserProfilLabel) {
    		user.getProfil().setProfilLabel(UserProfilLabel);
    	}
    	public String getUserStatutLabel()
    	{
    		return user.getStatut().getStatutLabel();
    	}
    	public void  setUserStatutLabel(String statutLabel) {
    		user.getStatut().setStatutLabel(statutLabel);
    	}
    	public Utilisateur getAdmin() {
    		return admin;
    	}
     
    	public void setAdmin(Utilisateur admin) {
    		this.admin = admin;
    	}
     
    	public Object[] getUsers() {
    		return this.users.toArray();
    	}
     
    	public void setUsers(Object [] usersParam) {
    		JOptionPane.showMessageDialog(null, "size="+usersParam.length);
    		this.users = new ArrayList<Utilisateur>();
    		    for (int i = 0; i < usersParam.length; i++) {
    		    	this.users.add((Utilisateur)usersParam[i]);
    		    }
    	}
     
    	public Set<DataMonitoring> getDataMonitorings() {
    		return user.getDataMonitorings();
    	}
    	public Profil getProfil() {
    		if (user.getProfil()==null)
    			return new Profil(2,"Consultation");
    		else
    		return user.getProfil();
    	}
    	public Statut getStatut() {
    		if (user.getStatut()==null)
    			return new Statut(1,"ACTIF");
    		else
    		return user.getStatut();
    	}
    	public int getUserEditMode() {
    		return user.getUserEditMode();
    	}
    	public int getUserId() {
    		return user.getUserId();
    	}
    	public String getUserIdentifiant() {
    		return user.getUserIdentifiant();
    	}
    	public String getUserNom() {
    		return user.getUserNom();
    	}
    	public String getUserPrenom() {
    		return user.getUserPrenom();
    	}
    	public String getUserPwd() {
    		return user.getUserPwd();
    	}
    	public void setDataMonitorings(Set<DataMonitoring> dataMonitorings) {
    		user.setDataMonitorings(dataMonitorings);
    	}
    	public void setProfil(Profil profil) {
    		user.setProfil(profil);
    	}
    	public void setStatut(Statut statut) {
    		user.setStatut(statut);
    	}
    	public void setUserEditMode(int userEditMode) {
    		user.setUserEditMode(userEditMode);
    	}
    	public void setUserId(int userId) {
    		user.setUserId(userId);
    	}
    	public void setUserIdentifiant(String userIdentifiant) {
    		user.setUserIdentifiant(userIdentifiant);
    	}
    	public void setUserNom(String userNom) {
    		user.setUserNom(userNom);
    	}
    	public void setUserPrenom(String userPrenom) {
    		user.setUserPrenom(userPrenom);
    	}
    	public void setUserPwd(String userPwd) {
    		user.setUserPwd(userPwd);
    	}
    	public boolean equals(Object arg0) {
    		return user.equals(arg0);
    	}
    	public int hashCode() {
    		return user.hashCode();
    	}
    	public String toString() {
    		return user.toString();
    	}
     
    	public java.util.List<Statut> getStatutsList() {
    		if (statutsList.isEmpty()) {
    			statutsList.add(new Statut(1,"ACTIF"));
    			statutsList.add(new Statut(0,"INACTIF"));
    			}
    		return statutsList;
    	}
    	public void setStatutsList(java.util.List<Statut> statutsList) {
    		this.statutsList = statutsList;
    	}
     
    }
    lors de l'affichage , c'est OK
    voici le code genere :
    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
     
    		<form name="userEditForm" method="post" action="/FirstProject/EditUsers.do?do=ListUsers">
    <tr>
    <td
    style="width: 615px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; height: 24px;">
    &nbsp; <span style="font-size: 10pt"> <input type="text" name="users[0].userNom" value="sallem" style="width: 132px"></span></td>
    <td
    	style="width: 23004px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px; text-align: left;">
    <span style="font-size: 10pt"> <input type="text" name="users[0].userPrenom" value="elyes" style="width: 127px"></span></td>
    <td
    	style="width: 9113px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px; text-align: center;">
    						<span style="font-size: 10pt"> <input type="text" name="users[0].userIdentifiant" maxlength="8" value="salleme" style="width: 63px"></span></td>
    <td
    	style="width: 10320px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px; text-align: center;">
    						<span style="font-size: 10pt"> <input type="text" name="users[0].userPwd" maxlength="8" value="sallem" style="width: 63px"></span></td>
    <td
    	style="width: 15787px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px; text-align: center;">
    <span style="font-size: 10pt"> 
    			<select name="users[0].profil.profilId"><option value="2">Consultation</option>
    <option value="1" selected="selected">Administrateur</option>
    <option value="3">Modification</option></select>
     
    </span></td>
    <td
    style="border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; width: 4299px; border-bottom: #f0f8ff 1px solid; height: 26px; background-color: #f0f8ff">
    						<span style="font-size: 10pt">
    <select name="users[0].statut.statutId"><option value="1" selected="selected">ACTIF</option>
    <option value="0">INACTIF</option></select>
    </span></td>
    <td
    	style="width: 7098px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px;">
    						&nbsp; 
    						<input type="submit" name="users[0].updateUserButton" value="valider">
    						</td>
    </tr>
    						<tr>
     
    						<td
    							style="width: 9543px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; text-align: left; height: 24px;">
    						<span style="font-size: 10pt">bouab</span></td>
    						<td
    							style="width: 23004px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; text-align: left; height: 24px;">
    						<span style="font-size: 10pt">mehdi</span></td>
    						<td
    							style="width: 9113px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; text-align: center; height: 24px;">
    						<span style="font-size: 10pt">bouabm</span></td>
    						<td
    							style="width: 10320px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; text-align: center; height: 24px;">
    						<span style="font-size: 10pt">mehdi</span></td>
    						<td
    							style="width: 15787px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; height: 24px; text-align: center;">
    						<span style="font-size: 10pt"></span> 
     
    								Consultation
     
    						</td>
    						<td
    							style="border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; width: 4299px; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; height: 24px; text-align: center;">
    						<span style="font-size: 10pt">
     
    								ACTIF
     
    						</span></td>
     
    						<td
    							style="width: 7098px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px;">
    						&nbsp;<input type="submit" name="users[1].editUserButton" value="modifier"></td>
     
     
     
    				</tr>
     
    																	<tr>
     
     
    						<td
    							style="width: 9543px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; text-align: left; height: 24px;">
    						<span style="font-size: 10pt">guy</span></td>
    						<td
    							style="width: 23004px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; text-align: left; height: 24px;">
    						<span style="font-size: 10pt">bernard</span></td>
    						<td
    							style="width: 9113px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; text-align: center; height: 24px;">
    						<span style="font-size: 10pt">guyb</span></td>
    						<td
    							style="width: 10320px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; text-align: center; height: 24px;">
    						<span style="font-size: 10pt">bernard</span></td>
    						<td
    							style="width: 15787px; border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; height: 24px; text-align: center;">
    						<span style="font-size: 10pt"></span> 
     
    								Modification
     
    </td>
    <td
    style="border-right: #d8e4f8 1px solid; border-top: #d8e4f8 1px solid; border-left: #d8e4f8 1px solid; width: 4299px; border-bottom: #d8e4f8 1px solid; background-color: #d8e4f8; height: 24px; text-align: center;">
    <span style="font-size: 10pt">
    ACTIF
    </span></td>
    <td
    style="width: 7098px; border-right: #f0f8ff 1px solid; border-top: #f0f8ff 1px solid; border-left: #f0f8ff 1px solid; border-bottom: #f0f8ff 1px solid; background-color: #f0f8ff; height: 26px;">
    &nbsp;<input type="submit" name="users[2].editUserButton" value="modifier"></td>
    </tr>
    </form>

    mais le probleme c'est lors de l'appel a valider
    il me retourne cette erreur :


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    java.lang.ArrayIndexOutOfBoundsException
    	java.lang.reflect.Array.get(Native Method)
    	org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:437)
    	org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)
    	org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:664)
    merci d'avoir lu jusqu'au bout
    sallemel

  6. #6
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    Il faut définir le scope du form-bean userEditForm à session dans le mapping de l'Action.

Discussions similaires

  1. lien hypertexte html link et param
    Par DonKnacki dans le forum Struts 1
    Réponses: 1
    Dernier message: 09/03/2010, 09h22
  2. html:text dans un logic:iterate
    Par ptitom1381 dans le forum Struts 1
    Réponses: 4
    Dernier message: 07/11/2008, 13h11
  3. <html:errors/> dans des <logic:iterate>
    Par BugFactory dans le forum Struts 1
    Réponses: 6
    Dernier message: 22/07/2008, 19h13
  4. lien (page html) s'ouvrant dans la même fenêtre
    Par hicham_alaoui1 dans le forum Général JavaScript
    Réponses: 1
    Dernier message: 15/09/2007, 19h22
  5. Réponses: 31
    Dernier message: 27/07/2006, 13h51

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo