>>>>> "Larry" == Larry Maturo <Maturo> writes:

    Larry> I have a table that displays information on a number of
    Larry> items.  Each table entry has an edit button, so that you
    Larry> can edit the information on that item. I use an iterate 
    Larry> tag to populate the table.  My problem is that I don't
    Larry> know how to save something indicating which edit button
    Larry> they pressed.

    Larry> My best guess was to use an onclick handler to set a
    Larry> hidden variable.  My problem is that while I know how
    Larry> to create the hidden variable (using the struts hidden
    Larry> tag) I don't know how to set it in the onclick handler.

One approach is not to try to determine which edit button was pressed, but to
use a hidden field in a form in each table row to encode the OID of the object
in that row.  Each form row submits to the same action.

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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

Reply via email to