1) view the page that was written by struts html tag, and view source to get its html version
2) use the html version, add autocomplete=off in the INPUT fields
3) replace the struts tag lines by 2) html version with added
Does this work ?
Originally posted by Merrill Higginson:
Yes, you can use regular HTML <input> tags with autocomplete attributes. Just be aware of the fact that an <html:text> tag automatically sets its value to the value of the ActionForm bean property, whereas an <input> tag does not. You would have to write JSP code to handle this yourself.
Thanks Merrill. Just want to make sure I understand the 2nd part of what you said -- For me, this html-text field is an user name entry, and I have a form "LogonForm" that encapsulate this field and password field. In my strut-config.xml, I specify this relationship in an "action" entry. Is this enough or do I still miss anything ? Can I assume when I click the login button, the form gets the value of what I entered ?