"Alex Colic" <[EMAIL PROTECTED]> wrote:

> I am interating through a vector a displaying the results. I have one field
> that I want the user to update hence I have made it a text box. When the
> page displays, the data is correct but when the user enters something into
> the text box and hits submit, the form in the actionservlet has the old data
> not what the user has entered.

This is because the generated HTML does not contain the index. Try the
"indexed" attribute of <html:text> (it is not in the release version 1.0)

Or try this:

<html:text property='<%= "attribute[" + i + "].value" %>' />


Note: your ActionForm has to be able to handle setAttribute(i, ...) even
when the underlaying vector is empty.

--
gR

Reply via email to