【问题标题】:Struts 2: Change default messages on tagsStruts 2:更改标签上的默认消息
【发布时间】:2014-12-21 15:07:12
【问题描述】:

我正在使用 Struts2,在这种情况下,我想自定义我的输入标签消息。 基本上将“未选择文件”更改为新文件。

有人知道怎么做吗?

【问题讨论】:

  • 你在 Struts2 中使用验证吗?

标签: java jsp struts2


【解决方案1】:

这是浏览器标签file 的硬编码消息,您不能直接更改它们。但是你可以使用cssjquery 来做到这一点。

来源How can I remove the "No file chosen" tooltip from a file input in Chrome?Change the "No file chosen":

【讨论】:

    猜你喜欢
    • 2014-08-17
    • 2016-08-22
    • 1970-01-01
    • 2022-09-22
    • 2014-04-30
    • 1970-01-01
    • 1970-01-01
    • 2018-06-04
    • 1970-01-01
    相关资源
    最近更新 更多