>LO,
>
>I have a form with multiple input as this
>
>
>
>
>
>
>
>...
>
>i made a usersForm as this :
>
>private String[] name = null;
>private String[] surname = null;
>...
>
>I would like to show the content of a the "usersForm " object preloaded
from
>an Action for editing datas
>
>
>I tried as this :
><%
>int i=0;
>%>
>
>
><%
>String surname = "surname["+i+"]";
>String name = "name["+i+"]";
>i++;
>%>
>
>
>
>
>
>This show magically the correct values on screen but as this in HTML code :
>
>
>
>
>
>
>
>So when i submit this form
>The usersForm can't retrieve new values because of the bad name of property
>(surname[0], name[0], surname[1], name[1],...)
I also tried this :
I tried this ( see between /***/):
public class EditDroitsAction extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws
IOException, ServletException {
String cible = new String("fin");
ActionErrors erreurs = new ActionErrors();
HttpSession session = request.getSession();
MBMMembre membre =(MBMMembre) session.getAttribute("membre");
//
DynaActionForm dynaForm = (DynaActionForm)form;
//
if(membre!=null) {
if(membre.isMBMBaseStarted()) {
try{
DroitsForm formulaire = new DroitsForm();
MBMGestionMembre gestionM=new MBMGestionMembre();
int nbMembres = gestionM.getListSize();
String base = "";
base = request.getParameter("base");
Vector listeMembres = new Vector();
MBMDroitsBean[] droitsBTab = new
MBMDroitsBean[nbMembres];
for(int i=0;i
...
Struts config :
>I think it must exist a simpliest solution using "indexed" attribute or
>others but i don't know what.
>And the documentations on struts are so poor for this kind of problem.
>
>sincerly
>
>Florent