Turning off autocomplete in JSP pages when using tag

The struts tags don't support the autocomplete tags. We can use the following code to make the structs tag to support autocomplete attribute.

html:text style="width:150px;\" autocomplete=\"off" maxlength="10" tabindex="35"/

Really struts tags don't support the autocomplete attribute by using above code. Whatever we do in the structs tags, finally it will be converted to html tag in Web browser.

well, when it is rendered, the tag becomes:

input type="text" autocomplete="off" style="width: 150px;" tabindex="35" maxlength="10"/

It seems it works.



No responses found. Be the first to comment...

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: