struts标签之property

1.替换内容为单个字符:
  <s:property value="strValue1.replace('s', 'A')" />

2.替换内容为多个字符:
  <s:property value='strValue2.replace(\"zz\", \"BB\")'/>
<td class="tableList"><s:property value="device.replace(\"0\",'Touch智控').replace(\"1\",'XXX').replace(\"2\",'YYY').replace(\"3\",'ZZZ')"/> </td>

你可能感兴趣的:(struts标签之property)