zakaria ghandour wrote:
Hi,
in my struts form i have 2 <html:text> to insert date and time.
i want to insert more than one object in my "Struts action" (using iteration
to display inputs in form).
how can i name my <html:text> to dont have conflict name, and how can i
recover the values of these inputs
in "struts action".
<tr>
<td><fmt:message key="label.date"/>:</td>
<td><html:text property="date" size="10" name="date"/> <html:errors
property="date"/></td>
</tr>
<tr>
<td><fmt:message key="label.heure"/>:</td>
<td><html:text property="heure" size="10" name="heure"/> <html:errors
property="heure"/></td>
</tr>
I don't know what you mean by conflicting names; you have two text
inputs, each with a distinct name. Where is the conflict? As to how to
'recover the values of these inputs', you just need setters on your form
bean, same as usual.
One slight oddity in your sample code above is the use of both 'name'
and 'property' attributes. Unless you are specifically intending to
bypass the form bean, you probably don't want the 'name' attribute.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]