Struts 2 Tips

s:text處理Null

<s:text name=”myObject.name”/>→如果myObject.name為null, 預設會顯示成”myObject.name”

<s:text name=”myObject.name”>空值</s:text>→此時就會顯示”空值”字眼

Continue reading Struts 2 Tips

Advertisements