Freek,
Thanks for responding. The problem is that I am trying to use the NAME attribute in my Javascript code and if I put the NAME attribute in the html:text tag, it means something special to Struts. I want Struts to ignore the NAME attribute. Example: <html:text property="myProperty" name="myTextField"/> I want Struts to ignore the name so that I can refer to the text field by name in Javascript. Example. <javascript> validate(myTextField.value); </javascript> Thanks, Dennis Freek Segers <freek.segers@co To: Struts Users Mailing List <[EMAIL PROTECTED]> ntingo.nl> cc: Subject: Re: Simple HTML form tag issue related to NAME attribute 01/08/2002 02:40 AM Please respond to "Struts Users Mailing List" Hi, If you want Struts to handle the field and populate and store its value in some Form bean, you can use the property attribute: <html:form action="myAction"> <html:text property="myProperty"/> </html:form> This tells Struts that it should store and retrieve the value of the text field using the property 'myProperty' in the Form bean. Because you leave out the name attribute, Struts will use the Form bean that you specified in struts-config.xml with the Action 'myAction'. The name of the generated input tag will be 'myProperty'. So you can use this name to do Javascript things. Hope this helps. Freek on 08-01-2002 01:17 you wrote: > I have some old HTML code that I am placing into the Struts framework. The > HTML code relies on the NAME attribute in form elements in order to run > Javascript validation. If I try to use the NAME attribute with the > <html:text> tag, for instance, Struts is trying to use that for the > attribute name of the bean and all I want is for Struts to ignore the name > so I can use it in Javascript. Can anyone please help me? > > Thanks, > Dennis -- 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]>