【问题标题】:how to write superscripts(like squares,powers) in struts 1.3 properties file?如何在 struts 1.3 属性文件中编写上标(如正方形、幂)?
【发布时间】:2012-08-03 17:44:53
【问题描述】:

我需要在前端打印 m(square) 等单位。所以,为此我必须在属性文件中提及。但是属性文件不接受这样写。 请帮帮我。

【问题讨论】:

  • 请说明你做了什么,以及你遇到的错误。
  • 感谢您的回复。没有错误出现,但预期的输出不会像 m2.how to write powers in properties file
  • 好的,你能展示一下属性是如何声明的,以及它是如何输出的吗?
  • 在我的 jspfile 中:在我的应用程序 Resources.properties 文件中:dsprocess.unit=Volume(cm2)。在属性文件中我无法写单位(cm2)上标或幂。

标签: struts struts-1 struts-config struts-validation


【解决方案1】:

在你的属性文件中添加sup html-tag:

dsprocess.unit=Volume(cm<sup>2</sup>)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-10
    相关资源
    最近更新 更多