【问题标题】:Disbale autocompletion for s:password and s:textfield in Struts2在 Struts2 中禁用 s:password 和 s:textfield 的自动完成
【发布时间】:2018-08-17 14:41:29
【问题描述】:

目前我们正在将 Struts1 应用程序迁移到 Struts2。在将 JSP 标签更改为 Struts2 时,我们在 Struts1 中为html:text 有属性

autocomplete=\"off"

禁用文本框的自动填充。 但是,当我尝试为 s:textfields:password 添加相同内容时,它会发出警告,例如 "Undefined attribute name 'autocomplete'" 我需要在 Struts2 中使用哪个属性?

【问题讨论】:

    标签: jsp struts2 migration textfield struts-1


    【解决方案1】:

    类似“未定义的属性名称'自动完成'”的警告

    只是警告,意思是动态属性。您可以关闭开发者模式来禁用它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-26
      • 1970-01-01
      • 2012-03-10
      • 2016-08-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多