Read Struts parametes in javascript
I am extracting a list of objects using logic:iterate (list is in session). Those objects hava a property called "name". Using the iteration, I draw a TABLE. Each row constains the object name and a submit button. The submit button has a javascript function, that shoul recieve object's name as a parameter, but I don't know how to do it.
<table>
<logic:iterate id="mylist" name="myobject" scope="session">
<tr>
<td><bean:write id="myobject" property="name"/></td>
<td><html:submit value="process" onclick="return doProcess(OBJECT_NAME_GOES_HERE)" />
</logic:iterate>
</table>
How do I pass the object's name inside doProcess()?
I know I might use a normal HTML INPUT to draw the submit, and put the text with <bean:write .../>, but if possible, I'd like to do it with struts tags

