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 :

Problème de logic:iterate


Sujet :

Struts 1 Java

  1. #1
    Membre confirmé
    Femme Profil pro
    Étudiant
    Inscrit en
    Juin 2009
    Messages
    76
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juin 2009
    Messages : 76
    Par défaut Problème de logic:iterate
    Bonjour,

    je travaille actuellement sur un projet visant à créer une application web à l'aide de Struts.

    J'ai actuellement un problème pour l'affichage d'une liste d'application.

    Voici l'erreur que je rencontre :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Cannot create iterator for this collection
    Le code de mon action :


    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
    package controler.action;
     
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpSession;
     
    import model.Application;
    import model.Applitheque;
     
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
     
    import sauvegarde.SauvegarderApplitheque;
    import controler.actionform.ApplithequeForm;
     
    public class ListeAppliAdmin extends Action{
     
    	public ActionForward execute(ActionMapping mapping, ActionForm form,
    			HttpServletRequest request,javax.servlet.http.HttpServletResponse response) 
    			throws Exception{
     
    			ApplithequeForm applithequeform = null;
    			HttpSession session = request.getSession(true);
    			applithequeform = (ApplithequeForm) session.getAttribute("applithequeform");
     
    			if (applithequeform == null){
    				//On créé le bean et on l'enregistre
    				applithequeform = new ApplithequeForm();
     
    				applithequeform.setApplitheque(SauvegarderApplitheque.lire(getServlet().getServletContext().getRealPath("/sauvegardes/applitheque.xml")));
    				System.out.println(applithequeform);
    				session.setAttribute("applithequeform", applithequeform);
    			}
    			return mapping.findForward("listeAppliAdmin");
    		}
     
    }
    Ma 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
    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
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>
    <%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
    <%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
     
    	<head>
    		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    		<title>Applith&egrave;que</title>
    	</head>
    	<body>
    		<h1>Applith&egrave;que</h1><br/>
    		<table border = "1">
    			<thead>
    				<tr>
    					<td>Nom</td>
    					<td>R&eacute;sum&eacute;</td>
    					<td>Langue</td>
    					<td>Licence</td>
    					<td>Version</td>
    					<td>Lien</td>
    					<td>Note</td>
    					<td>Modifier</td>
    					<td>Supprimer</td>
    				</tr>
    			</thead>
    			<tbody>
    			<logic:notEmpty name="applithequeform" property="applitheque">
    					<logic:iterate  id="appli" name="applithequeform" property="applitheque" >
    						<tr>
    							<td>
    								<html:link action="detailAppliAdmin.do" paramName="appli" paramProperty="id" paramId="id">
    								<bean:write name="appli" property="nom"/></html:link>
    							</td>
    							<td><bean:write name="appli" property="resume"/></td>
    							<td><bean:write name="appli" property="langue"/></td>
    							<td><bean:write name="appli" property="licence"/></td>
    							<td><bean:write name="appli" property="version"/></td>
    							<td><a href="<bean:write name='appli' property='lien'/>"><bean:write name='application' property='lien'/></a></td>
    							<td><bean:write name="appli" property="note"/></td>
    							<td align="center">
    								<html:link action="modifApplication.do" paramName="appli" paramProperty="id" paramId="id">
    								X
    								</html:link>
    							</td>
    							<td align="center">
    								<html:link action="supprApplication.do" paramName="appli" paramProperty="id" paramId="id">
    								X
    								</html:link>
    							</td>
    						</tr>
    					</logic:iterate>
    				</logic:notEmpty>
    			</tbody>
    		</table>
     
     
    		<br /><br />Ajout d'une application :<br /><br />
     
    		<form method="POST" action="ajoutApplication.do">
    			<table>
    				<tr><td>Nom : </td><td><input type="text" name="nom" value="" /></td></tr>
    				<tr><td>R&eacute;sum&eacute; : </td><td><input type="text" name="resume" value="" /></td></tr>
    				<tr><td>Langue : </td><td><input type="text" name="langue" value="" /></td></tr>
    				<tr><td>Licence : </td><td><input type="text" name="licence" value="" /></td></tr>
    				<tr><td>Version : </td><td><input type="text" name="version" value="" /></td></tr>
    				<tr><td>Lien : </td><td><input type="text" name="lien" /></td></tr>
    				<tr><td colspan="2"><input type="submit" name="btn_valider_appli" value="Valider" />
    			</table>
    		</form>
     
    		<br />
    		<html:link action="listeAdmin.do">Gestion des admininstrateurs</html:link><br /><br />
    	</body>
    </html>
    J'ai un type application et une arrayList de ces applications. (Avec tous les getters et setters qui vont). J'ai checké tout ce qui était checkable mais je ne pas trouvé d'où cette erreur vient.

    Auriez vous une petite idée ? Merci d'avance.

  2. #2
    Membre émérite Avatar de noOneIsInnocent
    Homme Profil pro
    Inscrit en
    Mai 2002
    Messages
    1 037
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2002
    Messages : 1 037
    Par défaut
    Bonjour

    est-ce que tu pourrais poster ton struts-config.xml stp ?
    est-ce que tu as déclaré ta propriété applitheque dans ton form-bean applithequeform?

    sinon je ne pense pas que tu aies besoin de mettre ton form applithequeform en session.

  3. #3
    Membre confirmé
    Femme Profil pro
    Étudiant
    Inscrit en
    Juin 2009
    Messages
    76
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juin 2009
    Messages : 76
    Par défaut
    Voici le struts-config.xml :

    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
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
              "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
              "http://struts.apache.org/dtds/struts-config_1_3.dtd">
     
    <struts-config>
     
     
    <!-- ================================================ Form Bean Definitions -->
     
        <form-beans>
    	<!-- Pour une application -->
    		<form-bean 
    			name="applicationform"
    			type="controler.actionform.ApplicationForm"
    		/>
    	<!-- Pour une applitheque -->
    		<form-bean
    			name="applithequeform"
    			type="controler.actionform.ApplithequeForm"
    		/>
    	<!--  Pour un admin -->
    		<form-bean
    			name="adminform"
    			type="controler.actionform.AdminForm"
    		/>
    	<!--  Pour une liste d'admin-->
    		<form-bean
    			name="listeadminform"
    			type="controler.actionform.ListeAdminForm"
    		/>
        </form-beans>
     
     
    <!-- ========================================= Global Exception Definitions -->
     
        <global-exceptions>
            <!-- sample exception handler
            <exception
                key="expired.password"
                type="app.ExpiredPasswordException"
                path="/changePassword.jsp"/>
            end sample -->
        </global-exceptions>
     
     
    <!-- =========================================== Global Forward Definitions -->
     
        <global-forwards>
            <!-- Default forward to "Welcome" action -->
            <!-- Demonstrates using index.jsp to forward -->
            <forward
                name="welcome"
                path="/listeAppliAdmin.do"/>
        </global-forwards>
     
     
    <!-- =========================================== Action Mapping Definitions -->
     
        <action-mappings>
                <!-- Default "Welcome" action -->
                <!-- Forwards to Welcome.jsp -->
            <action
                path="/Welcome"
                forward="/pages/listeAppliAdmin.jsp"/>
     
            <!-- Pour afficher la page de login -->
            <!-- redirection vers login.jsp -->
            <action
                path="/Login"
                forward="/pages/login.jsp"/>
     
            <!-- Traitement de l'authentification -->
            <!-- redirection vers listeAppliAdmin.jsp -->
            <action
            	path="/Login"
            	type="controler.action.LoginAction"
            	name="adminform"
            	input="/pages/login.jsp"
            	scope="request"
            	>
            	<forward name="listeAppliAdmin" path="/pages/listeAppliAdmin.jsp"/>
            </action>
     
            <!-- Pour afficher la liste des applications -->
            <!-- redirection vers listeAppliVisiteurs.jsp -->
            <action
                path="/listeAppliVisiteurs"
                type="controler.action.ListeAppliVisiteurs">
               <forward name="listeAppliVisiteurs" path="/pages/listeAppliVisiteurs.jsp"/>
           	</action>
     
           	<!-- Pour afficher le détail d'une application -->
            <!-- redirection vers detailsAppliVisiteurs.jsp -->
            <action
            	path="/detailAppliVisiteurs"
            	type="controler.action.DetailAppliVisiteurs"
            	name="applicationform"
            	input="/pages/listeAppliVisiteurs.jsp"
            	scope="request"
            	>
            	<forward name="detailAppliVisiteurs" path="/pages/detailAppliVisiteurs.jsp"/>
            </action>
     
            <!-- Pour ajouter une application -->
            <!-- redirection vers listeAppliAdmin.jsp -->
            <action
            	path="/ajoutApplication"
            	type="controler.action.AjoutApplication"
            	name="applicationform"
            	input="/pages/listeAppliAdmin.jsp"
            	scope="request"
            	>
            	<forward name="listeAppliAdmin" path="/pages/listeAppliAdmin.jsp"/>
            </action>
     
            <!-- Pour afficher la liste des applications (réservé aux admins) -->
            <!-- redirection vers listeAppliAdmin.jsp -->
            <action
                path="/listeAppliAdmin"
                type="controler.action.ListeAppliAdmin">
               <forward name="listeAppliAdmin" path="/pages/listeAppliAdmin.jsp"/>
           	</action>
     
           	<!-- Pour afficher le détail d'une application (réservé aux admins) -->
            <!-- redirection vers detailsAppliAdmin.jsp -->
            <action
            	path="/detailAppliAdmin"
            	type="controler.action.DetailAppliAdmin"
            	name="applicationform"
            	input="/pages/listeAppliAdmin.jsp"
            	scope="request"
            	>
            	<forward name="detailAppliAdmin" path="/pages/detailAppliAdmin.jsp"/>
            </action>
     
            <!-- Pour supprimer une application (réservé aux admins) -->
            <!-- redirection vers listeAppliAdmin.jsp -->
            <action
            	path="/supprApplication"
            	type="controler.action.SupprApplication"
            	name="applicationform"
            	input="/pages/listeAppliAdmin.jsp"
            	scope="request"
            	>
            	<forward name="listeAppliAdmin" path="/pages/listeAppliAdmin.jsp"/>
            </action>
     
            <!-- Pour afficher la page de modification d'une application -->
            <!-- redirection vers modifAdmin.jsp -->
            <action
            	path="/modifApplication"
            	type="controler.action.ModifApplication"
            	name="applicationform"
            	input="/pages/listeAppliAdmin.jsp"
            	scope="request"
            	>
            	<forward name="modifApplication" path="/pages/modifApplication.jsp"/>
            </action>
     
            <!-- Pour modifier une application -->
            <!-- redirection vers listeAdmin.jsp -->
            <action
            	path="/applicationModif"
            	type="controler.action.ApplicationModif"
            	name="applicationform"
            	input="/pages/modifApplication.jsp"
            	scope="request"
            	>
            	<forward name="listeAppliAdmin" path="/pages/listeAppliAdmin.jsp"/>
            </action>
     
            <!-- Pour afficher la liste des admins -->
            <!-- redirection vers listeAdmin.jsp -->
            <action
                path="/listeAdmin"
                type="controler.action.ListeAdmin">
               <forward name="listeAdmin" path="/pages/listeAdmin.jsp"/>
           	</action>
     
    		<!-- Pour afficher le détail d'un admin (réservé aux admins) -->
            <!-- redirection vers detailsAdmin.jsp -->
            <action
            	path="/detailAdmin"
            	type="controler.action.DetailAdmin"
            	name="adminform"
            	input="/pages/listeAdmin.jsp"
            	scope="request"
            	>
            	<forward name="detailAdmin" path="/pages/detailAdmin.jsp"/>
            </action>
     
            <!-- Pour ajouter un admin -->
            <!-- redirection vers listeAdmin.jsp -->
            <action
            	path="/ajoutAdmin"
            	type="controler.action.AjoutAdmin"
            	name="adminform"
            	input="/pages/listeAdmin.jsp"
            	scope="request"
            	>
            	<forward name="listeAdmin" path="/pages/listeAdmin.jsp"/>
            </action>
     
            <!-- Pour afficher la page de modification d'un admin -->
            <!-- redirection vers modifAdmin.jsp -->
            <action
            	path="/modifAdmin"
            	type="controler.action.ModifAdmin"
            	name="adminform"
            	input="/pages/listeAdmin.jsp"
            	scope="request"
            	>
            	<forward name="modifAdmin" path="/pages/modifAdmin.jsp"/>
            </action>
     
            <!-- Pour modifier un admin -->
            <!-- redirection vers listeAdmin.jsp -->
            <action
            	path="/adminModif"
            	type="controler.action.AdminModif"
            	name="adminform"
            	input="/pages/modifAdmin.jsp"
            	scope="request"
            	>
            	<forward name="listeAdmin" path="/pages/listeAdmin.jsp"/>
            </action>
     
            <!-- Pour supprimer un admin -->
            <!-- redirection vers listeAdmin.jsp -->
            <action
            	path="/supprAdmin"
            	type="controler.action.SupprAdmin"
            	name="adminform"
            	input="/pages/listeAdmin.jsp"
            	scope="request"
            	>
            	<forward name="listeAdmin" path="/pages/listeAdmin.jsp"/>
            </action>
     
    	</action-mappings>
     
    <!-- ======================================== Message Resources Definitions -->
     
        <message-resources parameter="MessageResources" />
     
     
    <!-- =============================================== Plug Ins Configuration -->
     
      <!-- ======================================================= Tiles plugin -->
      <!--
         This plugin initialize Tiles definition factory. This later can takes some
    	 parameters explained here after. The plugin first read parameters from
    	 web.xml, thenoverload them with parameters defined here. All parameters
    	 are optional.
         The plugin should be declared in each struts-config file.
           - definitions-config: (optional)
                Specify configuration file names. There can be several comma
    		    separated file names (default: ?? )
           - moduleAware: (optional - struts1.1)
                Specify if the Tiles definition factory is module aware. If true
                (default), there will be one factory for each Struts module.
    			If false, there will be one common factory for all module. In this
                later case, it is still needed to declare one plugin per module.
                The factory will be initialized with parameters found in the first
                initialized plugin (generally the one associated with the default
                module).
    			  true : One factory per module. (default)
    			  false : one single shared factory for all modules
    	   - definitions-parser-validate: (optional)
    	        Specify if xml parser should validate the Tiles configuration file.
    			  true : validate. DTD should be specified in file header (default)
    			  false : no validation
     
    	  Paths found in Tiles definitions are relative to the main context.
     
          To use this plugin, download and add the Tiles jar to your WEB-INF/lib
          directory then uncomment the plugin definition below.
     
        <plug-in className="org.apache.struts.tiles.TilesPlugin" >
     
          <set-property property="definitions-config"
                           value="/WEB-INF/tiles-defs.xml" />
          <set-property property="moduleAware" value="true" />
        </plug-in>
      -->  
     
     
      <!-- =================================================== Validator plugin -->
     
      <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
        <set-property
            property="pathnames"
            value="/org/apache/struts/validator/validator-rules.xml,
                   /WEB-INF/validation.xml"/>
      </plug-in>
     
    </struts-config>
    Et voici mon applithequeForm :

    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
    package controler.actionform;
    import javax.servlet.http.HttpServletRequest;
    import model.Application;
    import model.Applitheque;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
     
    /**
     * Bean intermédiaire entre le modèle et le controleur
     */
    public class ApplithequeForm extends ActionForm {
     
    	private static final long serialVersionUID = 1L;
    	Applitheque applitheque;
     
    	/**
             * Constructeur vide
             */
    	public ApplithequeForm() {	
    		this.applitheque = new Applitheque();
    	}
     
    	/**
             * @return the applitheque
             */
    	public Applitheque getApplitheque() {
    		return applitheque;
    	}
     
    	/**
             * @param applitheque the applitheque to set
             */
    	public void setApplitheque(Applitheque applitheque) {
    		this.applitheque = applitheque;
    	}
     
    	/**
             * @return the hashcode
             * @see java.lang.Object#hashCode()
             */
    	public int hashCode() {
    		return applitheque.hashCode();
    	}
     
    	/**
             * @param mapping
             * @param request
             * @see org.apache.struts.action.ActionForm#reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest)
             */
    	public void reset(ActionMapping mapping, HttpServletRequest request) {
    		applitheque = new Applitheque();
    	}
     
    	/**
             * @param a
             * @return
             */
    	public boolean add(Application a){
    		return applitheque.add(a);
    	}
     
     
    	public void clear(){
    		applitheque.clear();
    	}
     
     
    	/**
             * @param id
             * @return
             */
    	public Application getApplicationByID(int id){
    		return applitheque.getApplicationByID(id);
    	}
     
     
    	/**
             * @return boolean
             */
    	public boolean equals(Object arg0) {
    		return applitheque.equals(arg0);
    	}
     
    	/**
             * Vérifie si l'applithèque est vide ou non. 
             * @return boolean
             */
    	public boolean isEmpty(){
    		return applitheque.isEmpty();
    	}
     
     
    	public int size(){
    		return applitheque.size();
    	}
     
    	/* (non-Javadoc)
    	 * @see java.lang.Object#toString()
    	 */
    	public String toString() {
    		return applitheque.toString();
    	}
     
    	public boolean remove(int id) {
    		return applitheque.deleteApplication(id);
    	}
     
     
    }

  4. #4
    Membre émérite Avatar de noOneIsInnocent
    Homme Profil pro
    Inscrit en
    Mai 2002
    Messages
    1 037
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2002
    Messages : 1 037
    Par défaut
    Bonjour

    il y a trois points qui me viennent :
    i) dans le struts-config il faut déclarer la propriété applitheque

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
     
    !-- Pour une applitheque -->
    		<form-bean
    			name="applithequeform"
    			type="controler.actionform.ApplithequeForm">
     
     
    <form-property name="applitheque" type="package.to.applitheque" />
    </form-bean>
    ii) il me semble que le scope de ListAppliAdmin est la request , donc dans ton action tu n'a pas besoin de chercher dans la session
    mais plutôt
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    ApplithequeForm applithequeform =  (ApplithequeForm) form;

    iii) Et enfin un point structurant je n'ai pas vu le code de applitheque et je n'ai pas l'impression que ce soit un objet de type Collection.D'où ton erreur

    j'espère que ça va t'aider

  5. #5
    Membre confirmé
    Femme Profil pro
    Étudiant
    Inscrit en
    Juin 2009
    Messages
    76
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juin 2009
    Messages : 76
    Par défaut
    En fait, tout le code était bon a l'exception de mon modèle. (Le fameux iii) Une fois que j'ai fais un extends AbstractCollection<Application> sur ma classe Applithèque, ça s'est mis à fonctionner rudement mieux.

    Merci pour la piste. Je passe en tag "résolu".

  6. #6
    Membre émérite Avatar de noOneIsInnocent
    Homme Profil pro
    Inscrit en
    Mai 2002
    Messages
    1 037
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2002
    Messages : 1 037
    Par défaut
    je pense que tu peux prendre en compte aussi le point ii)
    D'une manière générale il est préférable d'utiliser le scope request plutôt que session sauf si vraiment tu as besoin de ton information tout le long de ta session

    voilà
    bonne journée

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. probléme Balise <logic:iterate>
    Par kiooik dans le forum Débuter avec Java
    Réponses: 0
    Dernier message: 13/01/2010, 14h01
  2. problème avec <logic:iterate>
    Par al3alwa dans le forum Struts 1
    Réponses: 16
    Dernier message: 10/12/2007, 17h32
  3. problème avec logic:iterate
    Par osman.amine dans le forum Struts 1
    Réponses: 5
    Dernier message: 11/04/2007, 16h18
  4. [EJB2.1 Entity] [BMP] [Struts] Problème avec <logic:iterate>
    Par romain3395 dans le forum Java EE
    Réponses: 2
    Dernier message: 07/06/2004, 10h12
  5. [struts][iterate] problème logic:iterate avec un Vector
    Par jaimepasteevy dans le forum Struts 1
    Réponses: 9
    Dernier message: 31/03/2004, 18h05

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