Aniket
Aniket

Reputation: 2214

How to remove a warning: Undefined attribute name [] in Struts 2 tags?

Currently we are migrating our Struts 1 application to Struts 2. While changing JSP tags to Struts 2, we have in Struts 1 for <html:text> tag there is attribute

autocomplete=\"off"

Which disables auto fill for text box.

But when I am trying to add the same for <s:textfield> and <s:password>, it is giving me warning like "Undefined attribute name 'autocomplete'".

Which attribute I need to use in Struts 2?

Upvotes: 1

Views: 338

Answers (1)

Roman C
Roman C

Reputation: 1

warning like "Undefined attribute name 'autocomplete'"

It's just warning, which means a dynamic attribute. You can turn off a developer mode to disable it.

Upvotes: 1

Related Questions