The form name is automatically populated with the name of the ActionForm this action uses.
Therefore, if /LevelCreate uses form "sampleForm" (in struts-config.xml) - that is the name that will show for your form. HTH, Matt --- "pritika.pattar" <[EMAIL PROTECTED]> wrote: > Hi All, > I have a question about struts tags for FORM. > How do u assign a name to a form for later reference... > > In normal tags, we say... > <form name="myForm" action="my URL"> > > and in Struts, we say > <html:form action="LevelCreate.do" enctype="multipart/form-data" > focus="level"> > > The form name is required to refer to the form elements like text > fields, in Java Script functions. > Currently I'm referring to the fields as > "document.forms(0).empid.value". But its not a good practice to refer a > form like this. > > Regards, > Pritika > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
