You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Vijaywargiya <vi...@yahoo.com> on 2006/09/06 23:10:44 UTC

"name" Attribute in tag

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
 
 
 		
---------------------------------
Get your email and more, right on the  new Yahoo.com 

Re: "name" Attribute in tag

Posted by Ashish Vijaywargiya <vi...@yahoo.com>.
Ohhhhhhhhhhhhh !!!!!!!!!!!!
 Nice Answer.
 I like it.
 
 Thanks for it Scott.
 Regards
 Ashish Vijaywargiya

Scott Van Wart <sc...@indosoft.com> wrote: Ashish Vijaywargiya wrote:
> Hi,
>  
>  Anybody of you know the specific reason of "Why the "name" attribute is not provided in the  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 , and thus 
name="myForm"...>.  So in your JavaScript you can refer to document.myForm.

- Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



 		
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

Re: "name" Attribute in tag

Posted by Scott Van Wart <sc...@indosoft.com>.
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org