There is a name attribute in the Struts form custom tag. Try <html:form action="LevelCreate.do" enctype="multipart/form-data" focus="level" name="MyForm">
I've not tested it and I found this in my Struts 1.1 struts-html.tld. Burr [EMAIL PROTECTED] ----- Original Message ----- From: "pritika.pattar" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Sent: Monday, January 21, 2002 11:38 PM Subject: Attribute of Form... 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
