Bonjour,
oui cela me semble possible, si ton Form contient le champ "myFormCollection".
Il faut commencer par définir ton formulaire :
<bean:define id="form" name="MyActionForm" />
Tu définis ensuite ta collection
<bean:define id="maCollection" name="form" property="myFormCollection"/>
Tu peux l'utiliser ensuite sous le nom "maCollection" dans ta jsp.
Par contre, l'appel à ta méthode "ramenerLaListeDeStrings(request)" doit se faire dans ton Action par exemple dans la méthode "init", si tu veux respecter MVC :
form.setMyFormCollection(this.ramenerLaListeDeStrings(request));
Par contre, je ne sais pas comment s'utilise le tag <bean:size>.
Voilà ! Mais, c'est mon humble avis...
Partager