while click button,it will retun the correspond tabl name

i have 10 table also i have a servlet page which contain 10 table-rows.
each row have one table-content and one edit button..
if i click edit button,it will return the correspond table name.
how i do this???
please reply me..