【问题标题】:struts tags in jsp for setting correct propertyjsp中的struts标签用于设置正确的属性
【发布时间】:2017-02-07 06:18:17
【问题描述】:

在使用它时,我无法使用它打印#rowstatus.index 的属性标签,但我需要它不显示为标签

<s:property id="domainName_" value="#rowstatus.index"/><s:property value="domainName" />

“11”ENTITY_TYPE

这个 if 语句给了我正确的属性

<s:if test="%{#request.documentationLink != null}">
<a href="<s:property value="#request.documentationLink"/>"target="_blank"
id="domainName_<s:property value="#rowstatus.index"/>"><s:property value="domainName" /></a>
</s:if>

【问题讨论】:

  • 完全不清楚你在问什么。

标签: jsp struts2 struts-tags


【解决方案1】:
<span id="domainName_<s:property value="#rowstatus.index"/>">
  <s:property value="domainName" />
</span>

使用跨度代替

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-06-02
    • 2012-01-29
    • 2012-10-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多