<s:if test="groupName.length()>22}"> <s:property value="groupName.substring(0,22)+'...'"/> </s:if> <s:else> <s:property value="groupName"/> </s:else>