I haven't used lazyform but i imagine it should work as follows.

<form-bean name="yourForm" type="org.apache.struts.action.LazyForm">
    <form-property name="mixtures" type="java.util.ArrayList" />
</form-bean>

<c:forEach var="mixture" items="${yourForm.mixtures}">
<html:text name="mixture" property="date" indexed="true" />

if you really want you could use a logic:iterate rather than c:forEach

<logic:iterate id="mixture" name="yourForm" property="mixtures">

The html:text will render to

<input type="text" name="mixture[0].date" />

You wont need to search request parameters although if you like that
sort of thing you could.

LazyDynaForm theForm = (LazyDynaForm) form;
List mixtureList = (List) theForm.get("mixtures");

for(int i = 0;i < mixutureList.size();i++) {
     String date = (String) mixutureList.get(i);
}


Mark

On Wed, 17 Nov 2004 16:08:06 -0500, Seaman, Sloan
<[EMAIL PROTECTED]> wrote:
> Is there anyway to use a LazyForm to do a something like:
> 
> <html:text property="mixture(1)date"/>
> <html:text property="mixture(1)flask(confluency)"/>
> <html:text property="mixture(1)flask(action)"/>
> 
> <html:text property="mixture(2)date"/>
> <html:text property="mixture(2)flask(confluency)"/>
> <html:text property="mixture(2)flask(action)"/>
> 
> Not the best example, but exactly what I need to do :)
> 
> Otherwise I'm stuck with:
> <html:text property="mixture-1-date"/>
> <html:text property="mixture-1-flask-confluency"/>
> <html:text property="mixture-1-flask-action"/>
> 
> <html:text property="mixture-2-date"/>
> <html:text property="mixture-2-flask-confluency"/>
> <html:text property="mixture-2-flask-action"/>
> And then searching through the request.getParamaterNames() or something like
> that...
> 
> Thanks...
> --
> Sloan
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to