Okay, I finally worked it out, but it is ugly as hell.  Pardon me if
I step on toes or shine my ignorance, but it seems to me like this
problem should be resolved more gracefully.  First of all, I have to
resort to scriptlets and secondly, I have to include the name of the
form in the logic:iterate tag, which means that I have to change it
if I change the name of the form.  I guess that is okay, but it
still doesn't seem right.  I guess it will keep me happy for now.
For those interested:

<logic:iterate id="item" name="testForm" property="items" indexId="i">
  <html:text property="<%="items[" + i + "]"%>"/>
</logic:iterate>

Assuming I had a DynaActionForm with the definition

<form-bean name="testForm" type="org.apache.struts.action.DynaActionForm">
  <form-property name="items" type="java.lang.String[]" initial="{'','','',''}"/>
</form-bean>

It would render

<html type="text" name="items[0]" value=""/>
<html type="text" name="items[1]" value=""/>
<html type="text" name="items[2]" value=""/>
<html type="text" name="items[3]" value=""/>

Dan

p.s.

> It would be easier for some of us if your emails didnt come
> through as attachments ;)
My e-mails definitely don't come as attachments, maybe it is just
your e-mail client :)  My e-mails are as plain as plain/text can be,
just as Mutt delivers them.  Perhaps your e-mail client renders text
e-mails as attachments.  Sorry it causes you an inconvenience but I
really don't think it is something I need to change on my part.

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Microsoft is not the answer, it is the question. 
The answer is NO!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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

Reply via email to