In struts, the name of the form is always the name of the ActionForm bean to which the action is associated. Example:
<action name="myForm" path="/myAction" type="com.mycompany.MyAction" />
In the following form:
<html:form action="/myAction" />
The name of the form will be "myForm" and you can use it in any JavaScript function.
Hint: When writing JavaScript for a Struts
JSP, remember it's the raw HTML generated by the Struts tags that is being used by JavaScript, and not the Struts tags themselves. If you ever have any doubt about what the generated HTML looks like for a given page, just use your browser's
view source function to see it.