Hi John, The autocomplete attribute of the <input> tag is not standard - it is not specified by the W3C and is supported only on IE5.0+ and Safari 1.0+. This is most likely why you will not find support for it in the Struts tags.
I would caution against using non-standard attributes if you want to maintain cross-browser compatibility. -Rod -----Original Message----- From: Skip Hollowell [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 15:21 To: user@struts.apache.org Subject: Re: html:text autocomplete=off possible? john lee-15 wrote: > for regular html, input type=text autocomplete=off > > but, how to set it in struts html:text ? > > i checked the reference of html:text, it does not have autocomplete > this attribute, > > what is the equivalent of that? > > tks in advance > > john John, since I wasn't able to find a property for this in the tags, and I have no ability yet to modify templates, I took the javascript route. Each of my pages runs the following onLoad: function loader() { self.focus(); //Bring window to foreground if necessary. var form = document.forms[0]; // grab the first form available. form.setAttribute("autocomplete","off"); // Turn off Autocomplete for the form, if the browser supports it. form.elements[0].focus(); // Send the cursor to the first field of the first form } Skip Hollowell --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]