struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Van Wart <>
Subject Re: "name" Attribute in <html:form> tag
Date Wed, 06 Sep 2006 21:14:42 GMT
Ashish Vijaywargiya wrote:
> Hi,
>  Anybody of you know the specific reason of "Why the "name" attribute is not provided
in the <html:form> tag???".
>  Thanks in advance.
>  Regards
>  Ashish Vijaywargiya
Struts uses the "name" attribute to repopulate your form on submit.  So 
if you have an action /someAction mapped to a form bean named "myForm", 
it should look like <html:form action="/someAction">, and thus <form 
name="myForm"...>.  So in your JavaScript you can refer to document.myForm.

- Scott

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message