<struts:if test="null!=pushAd&&pushAd.length()>14"> <struts:property value="pushAd.substring(0, 14)"/>... </struts:if> <struts:else> <struts:property value="pushAd" /> </struts:else>