JSP 中的 struts 标记,用于设置正确的属性



使用它时,我无法使用它打印 #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>
<span id="domainName_<s:property value="#rowstatus.index"/>">
  <s:property value="domainName" />
</span>

改用跨度

最新更新