<s:if test="form!=null&&form.item!=null&&form.item.id!=null"> <img src='<%=contextPath %>/images/vip.gif' title='test'/> </s:if>